Changeset 102063 in vbox for trunk/src/libs/xpcom18a4/nsprpub/pr/src/io/priometh.c
- Timestamp:
- Nov 10, 2023 2:01:03 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/nsprpub/pr/src/io/priometh.c
r102000 r102063 172 172 } 173 173 174 PR_IMPLEMENT(PRStatus) PR_Connect(175 PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout)176 {177 return((fd->methods->connect)(fd,addr,timeout));178 }179 180 PR_IMPLEMENT(PRStatus) PR_ConnectContinue(181 PRFileDesc *fd, PRInt16 out_flags)182 {183 return((fd->methods->connectcontinue)(fd,out_flags));184 }185 186 PR_IMPLEMENT(PRFileDesc*) PR_Accept(PRFileDesc *fd, PRNetAddr *addr,187 PRIntervalTime timeout)188 {189 return((fd->methods->accept)(fd,addr,timeout));190 }191 192 PR_IMPLEMENT(PRStatus) PR_Bind(PRFileDesc *fd, const PRNetAddr *addr)193 {194 return((fd->methods->bind)(fd,addr));195 }196 197 PR_IMPLEMENT(PRStatus) PR_Shutdown(PRFileDesc *fd, PRShutdownHow how)198 {199 return((fd->methods->shutdown)(fd,how));200 }201 202 PR_IMPLEMENT(PRStatus) PR_Listen(PRFileDesc *fd, PRIntn backlog)203 {204 return((fd->methods->listen)(fd,backlog));205 }206 207 PR_IMPLEMENT(PRInt32) PR_Recv(PRFileDesc *fd, void *buf, PRInt32 amount,208 PRIntn flags, PRIntervalTime timeout)209 {210 return((fd->methods->recv)(fd,buf,amount,flags,timeout));211 }212 213 PR_IMPLEMENT(PRInt32) PR_Send(PRFileDesc *fd, const void *buf, PRInt32 amount,214 PRIntn flags, PRIntervalTime timeout)215 {216 return((fd->methods->send)(fd,buf,amount,flags,timeout));217 }218 219 PR_IMPLEMENT(PRInt32) PR_Writev(PRFileDesc *fd, const PRIOVec *iov,220 PRInt32 iov_size, PRIntervalTime timeout)221 {222 if (iov_size > PR_MAX_IOVECTOR_SIZE)223 {224 PR_SetError(PR_BUFFER_OVERFLOW_ERROR, 0);225 return -1;226 }227 return((fd->methods->writev)(fd,iov,iov_size,timeout));228 }229 230 PR_IMPLEMENT(PRStatus) PR_GetSockName(PRFileDesc *fd, PRNetAddr *addr)231 {232 return((fd->methods->getsockname)(fd,addr));233 }234 235 PR_IMPLEMENT(PRStatus) PR_GetPeerName(PRFileDesc *fd, PRNetAddr *addr)236 {237 return((fd->methods->getpeername)(fd,addr));238 }239 240 PR_IMPLEMENT(PRStatus) PR_GetSocketOption(241 PRFileDesc *fd, PRSocketOptionData *data)242 {243 return((fd->methods->getsocketoption)(fd, data));244 }245 246 PR_IMPLEMENT(PRStatus) PR_SetSocketOption(247 PRFileDesc *fd, const PRSocketOptionData *data)248 {249 return((fd->methods->setsocketoption)(fd, data));250 }251 252 174 /* priometh.c */
Note:
See TracChangeset
for help on using the changeset viewer.