Re: NetLibSocketBind

2003-08-25 Thread rajan
param to see what error it was but the error don't mach with any of th ones especified in the reference if(NetLibSocketBind(libRefnum,DataSock,(NetSocketAddrType*)A,sizeof(A),timeout,errP) == -1){ WinDrawChars(Erro SockBind,13,5,135); if(errP == netErrParamErr

NetLibSocketBind

2003-08-22 Thread Alexandre Barreto
I'm using this function and its is returning -1 so i checked the err param to see what error it was but the error don't mach with any of th ones especified in the reference if(NetLibSocketBind(libRefnum,DataSock,(NetSocketAddrType*)A,sizeof(A),timeout,errP) == -1){ WinDrawChars(Erro SockBind

Re: NetLibSocketBind

2003-08-22 Thread David Chevalier
Alexandre Barreto wrote: I'm using this function and its is returning -1 so i checked the err param to see what error it was but the error don't mach with any of th ones especified in the reference if(NetLibSocketBind(libRefnum,DataSock,(NetSocketAddrType*)A,sizeof(A),timeout,errP) == -1

Re: NetLibSocketBind

2003-08-22 Thread David Chevalier
I just noticed your other post with the following parameters to your bind call: A.family = netSocketAddrINET; A.port = NetHToNS(1024);//_pda_float_to_sdword(porta)); A.addr = NetLibAddrAToIN(libRefnum, 192.168.10.118); Trying to bind your socket to the address 192.168.10.118 would be an error