示例#1
0
        public static UDPStream CreateUDPStream(int port = 0)
        {
            IntPtr    pointer = CreateUDPStream_internal(port);
            UDPStream ret     = new UDPStream(pointer);

            return(ret);
        }
示例#2
0
 public static int UDPMsgPort(UDPStream stream)
 {
     return(UDPMsgPort_internal(stream.Pointer));
 }
示例#3
0
 public static int UDPStreamIP(UDPStream stream)
 {
     return(UDPStreamIP_internal(stream.Pointer));
 }
示例#4
0
 public static int RecvUDPMsg(UDPStream stream)
 {
     return(RecvUDPMsg_internal(stream.Pointer));
 }
示例#5
0
 public static void SendUDPMsg(UDPStream stream, int ip, int port = 0)
 {
     SendUDPMsg_internal(stream.Pointer, ip, port);
 }
示例#6
0
 public static void CloseUDPStream(UDPStream stream)
 {
     CloseUDPStream_internal(stream.Pointer);
 }