1266
1266
public const int AF_INET6;
1267
1267
[CCode (cheader_filename = "sys/socket.h")]
1268
1268
public const int AF_UNIX;
1270
[CCode (cheader_filename = "sys/socket.h")]
1271
public const int SHUT_RD;
1272
[CCode (cheader_filename = "sys/socket.h")]
1273
public const int SHUT_WR;
1274
[CCode (cheader_filename = "sys/socket.h")]
1275
public const int SHUT_RDWR;
1269
1277
[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
1270
1278
public int accept (int sfd, ... );
1271
[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
1279
[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
1272
1280
public int bind (int sockfd, ...);
1273
1281
[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
1274
1282
public int connect(int sfd, ... );
1275
[CCode (cheader_filename = "sys/socket.h")]
1276
public int getsockopt (int sockfd, int level, int optname, void* optval, out socklen_t optlen);
1277
[CCode (cheader_filename = "sys/socket.h")]
1283
[CCode (cheader_filename = "sys/socket.h")]
1284
public int getsockopt (int sockfd, int level, int optname, void* optval, out socklen_t optlen);
1285
[CCode (cheader_filename = "sys/socket.h")]
1278
1286
public int listen (int sfd, int backlog);
1279
[CCode (cheader_filename = "sys/socket.h")]
1280
public ssize_t send (int sockfd, void* buf, size_t len, int flags);
1281
[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
1282
public ssize_t sendto (int sockfd, void* buf, size_t len, int flags, ...);
1283
[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
1284
public ssize_t sendmsg (int sockfd, ...);
1285
[CCode (cheader_filename = "sys/socket.h")]
1286
public int setsockopt(int sockfd, int level, int optname, void* optval, socklen_t optlen);
1287
[CCode (cheader_filename = "sys/socket.h")]
1287
[CCode (cheader_filename = "sys/socket.h")]
1288
public ssize_t send (int sockfd, void* buf, size_t len, int flags);
1289
[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
1290
public ssize_t sendto (int sockfd, void* buf, size_t len, int flags, ...);
1291
[CCode (cheader_filename = "sys/socket.h", sentinel = "")]
1292
public ssize_t sendmsg (int sockfd, ...);
1293
[CCode (cheader_filename = "sys/socket.h")]
1294
public int setsockopt (int sockfd, int level, int optname, void* optval, socklen_t optlen);
1295
[CCode (cheader_filename = "sys/socket.h")]
1296
public int shutdown (int sockfd, int how);
1297
[CCode (cheader_filename = "sys/socket.h")]
1288
1298
public int socket (int domain, int type, int protocol);
1289
1299
[CCode (cheader_filename = "sys/socket.h")]
1290
1300
public int socketpair (int domain, int type, int protocol, int[] sv);