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