LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] slightly OT: Using select on Solaris.

[CLUG] slightly OT: Using select on Solaris.

Dunphy Richard-rdunph01 Rik.Dunphy at motorola.com
Tue May 15 09:29:29 IST 2001


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


More information about the Cork mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell