Lines Matching refs:inSocketNum
154 static Boolean SocketIndexIsValid(const int inSocketNum);
166 void MacSocket_GetSocketErrorInfo(const int inSocketNum,int *outSocketErrCode,char *outSocketErrString,const int inSocketErrStringMaxLength)
179 if (SocketIndexIsValid(inSocketNum))
181 SocketStruct *theSocketStruct = &(sSockets[inSocketNum]);
197 void MacSocket_SetUserRefPtr(const int inSocketNum,void *inNewRefPtr)
199 if (SocketIndexIsValid(inSocketNum))
201 SocketStruct *theSocketStruct = &(sSockets[inSocketNum]);
209 void MacSocket_GetLocalIPAndPort(const int inSocketNum,char *outIPAndPort,const int inIPAndPortLength)
211 if (outIPAndPort != nil && SocketIndexIsValid(inSocketNum))
214 SocketStruct *theSocketStruct = &(sSockets[inSocketNum]);
246 void MacSocket_GetRemoteIPAndPort(const int inSocketNum,char *outIPAndPort,const int inIPAndPortLength)
248 if (outIPAndPort != nil && SocketIndexIsValid(inSocketNum))
251 SocketStruct *theSocketStruct = &(sSockets[inSocketNum]);
283 Boolean MacSocket_RemoteEndIsClosing(const int inSocketNum)
287 if (SocketIndexIsValid(inSocketNum))
289 SocketStruct *theSocketStruct = &(sSockets[inSocketNum]);
299 Boolean MacSocket_ListenCompleted(const int inSocketNum)
303 if (SocketIndexIsValid(inSocketNum))
305 SocketStruct *theSocketStruct = &(sSockets[inSocketNum]);
315 Boolean MacSocket_RemoteEndIsOpen(const int inSocketNum)
317 if (SocketIndexIsValid(inSocketNum))
319 SocketStruct *theSocketStruct = &(sSockets[inSocketNum]);
332 Boolean MacSocket_LocalEndIsOpen(const int inSocketNum)
334 if (SocketIndexIsValid(inSocketNum))
336 SocketStruct *theSocketStruct = &(sSockets[inSocketNum]);
364 static Boolean SocketIndexIsValid(const int inSocketNum)
366 if (inSocketNum >= 0 && inSocketNum < kMaxNumSockets && sSockets[inSocketNum].mEndPointRef != kOTInvalidEndpointRef)
792 OSErr MacSocket_listen(const int inSocketNum,const int inPortNum)
798 if (!SocketIndexIsValid(inSocketNum))
804 theSocketStruct = &(sSockets[inSocketNum]);
940 OSErr MacSocket_connect(const int inSocketNum,char *inTargetAddressAndPort)
946 if (!SocketIndexIsValid(inSocketNum))
951 theSocketStruct = &(sSockets[inSocketNum]);
1068 OSErr MacSocket_close(const int inSocketNum)
1074 if (!SocketIndexIsValid(inSocketNum))
1080 theSocketStruct = &(sSockets[inSocketNum]);
1159 int MacSocket_recv(const int inSocketNum,void *outBuff,int outBuffLength,const Boolean inBlock)
1173 if (!SocketIndexIsValid(inSocketNum))
1178 theSocketStruct = &(sSockets[inSocketNum]);
1290 int MacSocket_send(const int inSocketNum,const void *inBuff,int inBuffLength)
1304 if (!SocketIndexIsValid(inSocketNum))
1310 theSocketStruct = &(sSockets[inSocketNum]);