Go to the source code of this file.
◆ SNewDatagramClient()
Definition at line 19 of file SNew.c.
20{
21 int sfd;
22
24 if (sfd < 0)
26
27 return (sfd);
28}
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
◆ SNewDatagramServer()
Definition at line 64 of file SNew.c.
65{
66 int oerrno;
67 int sfd;
68
70 if (sfd < 0)
72
73 if (
SBind(sfd,
port, nTries, reuseFlag) < 0) {
78 }
79
80 return (sfd);
81}
int SBind(int sockfd, const int port, const int nTries, const int reuseFlag)
◆ SNewStreamClient()
Definition at line 4 of file SNew.c.
5{
6 int sfd;
7
9 if (sfd < 0)
11
12 return (sfd);
13}
◆ SNewStreamServer()
Definition at line 34 of file SNew.c.
35{
36 int oerrno;
37 int sfd;
38
40 if (sfd < 0)
42
43 if (
SBind(sfd,
port, nTries, reuseFlag) < 0) {
48 }
49
50 if (
SListen(sfd, listenQueueSize) < 0) {
55 }
56
57 return (sfd);
58}
int SListen(int sfd, int backlog)
Referenced by Server().