All,
I've written a simple socket server and client which seems to work ok on my linux box. The server uses select() to switch between multiple clients.
I then wanted to move the code across to solaris (7). A previous (simpler) server worked ok so I know the port number is free on the solaris box. The only extra thing I had to do was add -lsocket and -lnls to the gcc line.
But the server with select() just won't work. Anytime the client tries to connect it's refused.
Anyone know why that is? Or what I need to do to get these to work?
I've attached the client and server files.
TIA
RikD.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: client2.c
Type: application/octet-stream
Size: 967 bytes
Desc: not available
Url : http://mail.linux.ie/pipermail/cork/attachments/20010515/20740ed0/client2.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: server5.c
Type: application/octet-stream
Size: 3205 bytes
Desc: not available
Url : http://mail.linux.ie/pipermail/cork/attachments/20010515/20740ed0/server5.obj
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!