[U2] Sockets programming on Unidata

2012-08-20 Thread Rutherford, Marc
Unidata 7.1.8 HP-UX 11.11i I am attempting my first sockets programming project. It appears that 'initServerSocket' and 'openSocket' are working OK. 'getSocketInformation' returns info. But 'acceptConnection' only seems to timeout, yet it returns a RESULT of '0' (no error). The

Re: [U2] Sockets programming on Unidata

2012-08-20 Thread larryh
Are you the client or the server? acceptConnection is only used by the server to accept incoming socket connection requests. If you're trying to communicate as a client to a remote server, you won't use acceptConnection, you'll just open the socket, write the request, read the response, and

Re: [U2] Sockets programming on Unidata

2012-08-20 Thread Rutherford, Marc
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of lar...@wcs-corp.com Sent: Monday, August 20, 2012 9:12 AM To: U2 Users List Subject: Re: [U2] Sockets programming on Unidata Are you the client or the server? acceptConnection is only used by the server to accept incoming socket connection

Re: [U2] Sockets programming on Unidata

2012-08-20 Thread larryh
Advanced Bionics LLC 661) 362 1754 -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of lar...@wcs-corp.com Sent: Monday, August 20, 2012 9:12 AM To: U2 Users List Subject: Re: [U2] Sockets programming on Unidata

Re: [U2] Sockets programming on Unidata

2012-08-20 Thread Rutherford, Marc
:48 AM To: U2 Users List Subject: Re: [U2] Sockets programming on Unidata Yes, the same SocketHandle that openSocket returns. Larry Hiscock Western Computer Services Santa Clarita, CA Got it, I am the client - so the 'init' and 'accept' not applicable. So I should both 'write' and 'read