Esempio n. 1
0
 internal static extern int EpollCtl(FileDescriptor epfd, int op, FileDescriptor fd, ref EpollEvent epollEvent);
Esempio n. 2
0
 internal static extern int EpollWait(FileDescriptor epfd, [In, Out] EpollEvent[] epollEvent, int maxevents, int timeout);
Esempio n. 3
0
 internal static extern int RecvFrom(FileDescriptor sockfd, byte[] buf, int len, int flags, ref SockAddr dest_addr, ref int addrlen);
Esempio n. 4
0
 internal static extern int SendTo(FileDescriptor sockfd, byte[] buf, int len, int flags, ref SockAddr dest_addr, int addrlen);
Esempio n. 5
0
 internal static extern FileDescriptor SetSockOpt(FileDescriptor socket, int level, int option_name, ref int option_value, int option_len = 1);
Esempio n. 6
0
 internal static extern int Bind(FileDescriptor sockfd, ref SockAddr addr, int addrlen);
Esempio n. 7
0
 internal static extern int IOCtl(FileDescriptor fd, uint request, ref InterfaceRequestWithAddress data);
Esempio n. 8
0
 internal static extern int Fcntl(FileDescriptor fd, int cmd, int arg);
Esempio n. 9
0
 internal static extern int Write(FileDescriptor fd, byte[] buf, int count);
Esempio n. 10
0
 internal static extern int Read(FileDescriptor fd, [In, Out] byte[] buf, int count);
Esempio n. 11
0
 public UdpSocket()
 {
     SocketFileDescriptor = IO.Check(IO.Socket(IO.AF_INET, IO.SOCK_DGRAM, IO.IPPROTO_IP));
 }