Lines Matching refs:WINSOCK_API_LINKAGE
13 /* define WINSOCK_API_LINKAGE and WSAAPI for less
16 #ifndef WINSOCK_API_LINKAGE
19 #define WINSOCK_API_LINKAGE DECLSPEC_IMPORT
21 #define WINSOCK_API_LINKAGE
23 #endif /* WINSOCK_API_LINKAGE */
277 WINSOCK_API_LINKAGE SOCKET WSAAPI accept(SOCKET s,struct sockaddr *addr,int *addrlen);
278 WINSOCK_API_LINKAGE int WSAAPI bind(SOCKET s,const struct sockaddr *name,int namelen);
279 WINSOCK_API_LINKAGE int WSAAPI closesocket(SOCKET s);
280 WINSOCK_API_LINKAGE int WSAAPI connect(SOCKET s,const struct sockaddr *name,int namelen);
281 WINSOCK_API_LINKAGE int WSAAPI ioctlsocket(SOCKET s,__LONG32 cmd,u_long *argp);
282 WINSOCK_API_LINKAGE int WSAAPI getpeername(SOCKET s,struct sockaddr *name,int *namelen);
283 WINSOCK_API_LINKAGE int WSAAPI getsockname(SOCKET s,struct sockaddr *name,int *namelen);
284 WINSOCK_API_LINKAGE int WSAAPI getsockopt(SOCKET s,int level,int optname,char *optval,int *optlen);
286 WINSOCK_API_LINKAGE u_long WSAAPI htonl(u_long hostlong);
287 WINSOCK_API_LINKAGE u_short WSAAPI htons(u_short hostshort);
289 WINSOCK_API_LINKAGE unsigned __LONG32 WSAAPI inet_addr(const char *cp);
290 WINSOCK_API_LINKAGE char *WSAAPI inet_ntoa(struct in_addr in);
291 WINSOCK_API_LINKAGE int WSAAPI listen(SOCKET s,int backlog);
293 WINSOCK_API_LINKAGE u_long WSAAPI ntohl(u_long netlong);
294 WINSOCK_API_LINKAGE u_short WSAAPI ntohs(u_short netshort);
296 WINSOCK_API_LINKAGE int WSAAPI recv(SOCKET s,char *buf,int len,int flags);
297 WINSOCK_API_LINKAGE int WSAAPI recvfrom(SOCKET s,char *buf,int len,int flags,struct sockaddr *from,int *fromlen);
299 WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
301 WINSOCK_API_LINKAGE int WSAAPI send(SOCKET s,const char *buf,int len,int flags);
302 WINSOCK_API_LINKAGE int WSAAPI sendto(SOCKET s,const char *buf,int len,int flags,const struct sockaddr *to,int tolen);
303 WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char *optval,int optlen);
304 WINSOCK_API_LINKAGE int WSAAPI shutdown(SOCKET s,int how);
305 WINSOCK_API_LINKAGE SOCKET WSAAPI socket(int af,int type,int protocol);
306 WINSOCK_API_LINKAGE struct hostent *WSAAPI gethostbyaddr(const char *addr,int len,int type);
307 WINSOCK_API_LINKAGE struct hostent *WSAAPI gethostbyname(const char *name);
309 WINSOCK_API_LINKAGE int WSAAPI gethostname(char *name,int namelen);
311 WINSOCK_API_LINKAGE struct servent *WSAAPI getservbyport(int port,const char *proto);
312 WINSOCK_API_LINKAGE struct servent *WSAAPI getservbyname(const char *name,const char *proto);
313 WINSOCK_API_LINKAGE struct protoent *WSAAPI getprotobynumber(int number);
314 WINSOCK_API_LINKAGE struct protoent *WSAAPI getprotobyname(const char *name);
315 WINSOCK_API_LINKAGE int WSAAPI WSAStartup(WORD wVersionRequested,LPWSADATA lpWSAData);
316 WINSOCK_API_LINKAGE int WSAAPI WSACleanup(void);
317 WINSOCK_API_LINKAGE void WSAAPI WSASetLastError(int iError);
318 WINSOCK_API_LINKAGE int WSAAPI WSAGetLastError(void);
319 WINSOCK_API_LINKAGE WINBOOL WSAAPI WSAIsBlocking(void);
320 WINSOCK_API_LINKAGE int WSAAPI WSAUnhookBlockingHook(void);
321 WINSOCK_API_LINKAGE FARPROC WSAAPI WSASetBlockingHook(FARPROC lpBlockFunc);
322 WINSOCK_API_LINKAGE int WSAAPI WSACancelBlockingCall(void);
323 WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetServByName(HWND hWnd,u_int wMsg,const char *name,const char *proto,char *buf,int buflen);
324 WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetServByPort(HWND hWnd,u_int wMsg,int port,const char *proto,char *buf,int buflen);
325 WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetProtoByName(HWND hWnd,u_int wMsg,const char *name,char *buf,int buflen);
326 WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetProtoByNumber(HWND hWnd,u_int wMsg,int number,char *buf,int buflen);
327 WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetHostByName(HWND hWnd,u_int wMsg,const char *name,char *buf,int buflen);
328 WINSOCK_API_LINKAGE HANDLE WSAAPI WSAAsyncGetHostByAddr(HWND hWnd,u_int wMsg,const char *addr,int len,int type,char *buf,int buflen);
329 WINSOCK_API_LINKAGE int WSAAPI WSACancelAsyncRequest(HANDLE hAsyncTaskHandle);
330 WINSOCK_API_LINKAGE int WSAAPI WSAAsyncSelect(SOCKET s,HWND hWnd,u_int wMsg,__LONG32 lEvent);
357 #undef WINSOCK_API_LINKAGE