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' using the same SocketHandle? > > Marc Rutherford > Principal Programmer Analyst > 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 > > 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 close the socket. > > Larry Hiscock > Western Computer Services > > >> 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 SocketHandle3 variable is not set. >> >> Without this SocketHandle3 variable I cannot read ('readSocket'). I >> am doing a 'readSocket' after I have done a 'writeSocket' I am >> expecting a reply from the remote application (Oaisys call recording). >> >> What am I missing? The Unidata manual is pretty sparse. Maybe I have >> an issue with network permissions/firewalling? >> >> Any ideas on what may be going on with 'acceptConnetion' ? Maybe you >> have links to deeper Rocket documentation? >> >> Thanks, >> >> Marc Rutherford >> Principal Programmer Analyst >> Advanced Bionics LLC >> 661) 362 1754 >> >> _______________________________________________ >> U2-Users mailing list >> U2-Users@listserver.u2ug.org >> http://listserver.u2ug.org/mailman/listinfo/u2-users >> > > > _______________________________________________ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > _______________________________________________ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users