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
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
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
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