Coder's Guild Mailing List

Re: Socket.h + Socket Programming in DJGPP

Posted by Matthew Pratt on 1999-02-25

---Eugene Teo <eugenteo@xxxxxxx.xxx.xx> wrote:
>
> Hi
> 
> i am using djgpp and i found that i am missing socket.h & 
> other socket programming header files. anyone knows where
> i can get them? i am learn socket programming and without
> these header files...i am going no where.
> 
> operating system: Windows 95
> running a small server, using loopback ip
> running DJGPP for DOS (testing and coding and deployment)

You need the lsck BSD-style socket library for Win95. It provides a
standard Unix API to the M$ WinSock of windoze (which is a
bastardization of the BSD socket API ironically).

ftp://mirror.aarnet.edu.au/pub/simtelnet/gnu/djgpp/v2tk/lsck073b.zip

> PS: Any tutorials/Guide/Tips/Advice in Socket Programming in
> DJGPP? I hope to learn and i am eager to share my knowledge
> with everyone over the net once i learn it =) hehee

Since it is a standard API any Unix socket tutorial is relevant. Linux
man pages are good too.

http://www.lowtek.com/sockets/
http://www.cs.buffalo.edu/~milun/unix.programming.html
http://www.ecst.csuchico.edu/~beej/guide/net/#sendrecv
http://www.foobar.co.uk/~simon/net/
http://www.ee.mu.oz.au/linux/programming/
http://www.erlenstar.demon.co.uk/unix/faq_toc.html

Hope this can get you started.

Note: to use the loopback under 'doze you may need some sort of
network device installed (like a NIC) so that the winsock is loaded.

==
Matty 

email - mattpratt@xxxxx.xxx
"Learn the console, become 1 with it, it is 0."
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com