Mail Archives: djgpp/1997/08/01/05:47:45
A. Sinan Unur (asu1 AT cornell DOT edu) wrote:
: storm3 wrote:
: >I need to know which library I should use the WSOCK or TCP/IP
: > lib.. I am gonna be running these under '95 and would like them to be
: > able to talk to each other when I connect using '95's dial up
: AFAIK, the purpose of the WSOCK library available for djgpp is to enable
: djgpp apps to make winsock calls. (someone correct me if i am wrong.)
Not quite. Well, I can't speak for Dan Hedlund's intentions of course, but
the library provides a class with some common winsock functions as
methods. It's a bit like an extra wrapper for each connection. The source
code does, of course, enable you to make the calls directly, yourself. A
while ago I was considering making a strict C only version which would
provide all the standard Winsock functions without the class wrapper, but
I never found time.
This would be a good thing because it would simplify porting programs from
other environments, and people learning winsock this way could then go to
other environments more easily. At present, the porting isn't too hard if
you know what you're doing.
Incidentally, Winsock is not restricted to TCP - you can also do UDP. I'm
not sure whether you can use raw sockets, though; I think not.
--
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford
- Raw text -