Date: Wed, 26 Oct 2005 00:04:20 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 640 ************************************************** Tuesday 25 October 2005 Number 640 ************************************************** Subjects for today 1 Binding to socket : Dave Bamford 2 Re: Binding to socket : Yuri Dario" 3 Re: Binding to socket : John Poltorak 4 Re: Binding to socket : Tobias Huerlimann 5 Re: Binding to socket (fixed) SSL problem : Dave Bamford **= Email 1 ==========================** Date: Mon, 24 Oct 2005 14:51:45 +0100 From: Dave Bamford Subject: Binding to socket Hi I am having trouble binding to a socket in the app I'm porting the port numer is 2200 which is not listed in the services file in the mptn\etc\services Is this the problem? The socket get created OK. Thanks Dave Bamford. **= Email 2 ==========================** Date: Mon, 24 Oct 2005 16:28:22 +0200 (CDT) From: "Yuri Dario" Subject: Re: Binding to socket Hi, >I am having trouble binding to a socket in the app I'm porting >the port numer is 2200 which is not listed in the services file >in the mptn\etc\service set sock_addr structure to zero before setting fields. Bye, Yuri Dario /* * member of TeamOS/2 - Italy * http://www.os2power.com/yuri * http://www.teamos2.it */ **= Email 3 ==========================** Date: Mon, 24 Oct 2005 15:14:06 +0100 From: John Poltorak Subject: Re: Binding to socket On Mon, Oct 24, 2005 at 02:51:45PM +0100, Dave Bamford wrote: > Hi > > I am having trouble binding to a socket in the app I'm porting > the port numer is 2200 which is not listed in the services file > in the mptn\etc\services > > Is this the problem? > > The socket get created OK. What problem do you have? netstat -s will list all the ports currently in use. > Thanks > > Dave Bamford. -- John **= Email 4 ==========================** Date: Mon, 24 Oct 2005 18:30:58 +0200 From: Tobias Huerlimann Subject: Re: Binding to socket Dave Bamford wrote: > Hi > > I am having trouble binding to a socket in the app I'm porting > the port numer is 2200 which is not listed in the services file > in the mptn\etc\services > > Is this the problem? No. The /etc/services file is only used to look up port numbers for example in applications like inetd. In inetd.conf you can specify ports either by number or by name. You can compare /etc/services to /etc/hosts: just as it is not necessary to have an entry for every IP address that you want to communicate with in /etc/hosts, you also don't have to have an entry for every port you'd like to use in /etc/services. Tobias Hürlimann **= Email 5 ==========================** Date: Mon, 24 Oct 2005 21:42:39 +0100 From: Dave Bamford Subject: Re: Binding to socket (fixed) SSL problem Thanks all I have got this working now, the name was wrong it was looking for a .sock file. Replaced this with a valid IP address and the socket now works. But.... I now get SSL error 5 when trying to handshake this equates to *SSL_ERROR_SYSCALL* Got stuck now on this, I may rebuild openSSL with the version of gcc I am using to build this app 3.3.5. What version of openSSL would be best to try to get. When I try to build 0.9.7 with the gcc 3.3.5 environment I get this D:\ports\openssl\workdir\openssl-0.9.7\tmp_dll\ui_openssl.obj weakld: error: Unresolved symbol (UNDEF) 'getuid'. weakld: info: The symbol is referenced by: D:\ports\openssl\workdir\openssl-0.9.7\tmp_dll\uid.obj Ignoring unresolved externals reported from weak prelinker. ilink.exe: No such file or directory make: *** [out_dll\crypto.dll] Error 1 Any guidance please. Dave.