示例#1
0
 public static TcpServer <Z, Cons <Z, Nil> > ToTcpServer <S, Z>(this StreamedProtocol <S, Z> protocol, IPAddress address, int port) where S : SessionType where Z : SessionType
 {
     return(new TcpServer <Z, Cons <Z, Nil> >(address, port, protocol.Serializer));
 }
示例#2
0
 public static TcpClient <S, Cons <S, Nil> > CreateTcpClient <S, Z>(this StreamedProtocol <S, Z> protocol) where S : SessionType where Z : SessionType
 {
     return(new TcpClient <S, Cons <S, Nil> >(protocol.Serializer));
 }
示例#3
0
 public static TcpServer <Z, Cons <Z, ZZ> > ToTcpServer <S, SS, Z, ZZ>(this StreamedProtocol <Cons <S, SS>, Cons <Z, ZZ> > protocol, IPAddress address, int port) where S : SessionType where SS : SessionList where Z : SessionType where ZZ : SessionList
 {
     return(new TcpServer <Z, Cons <Z, ZZ> >(address, port, protocol.Serializer));
 }
示例#4
0
 public static TcpClient <S, Cons <S, SS> > CreateTcpClient <S, SS, Z, ZZ>(this StreamedProtocol <Cons <S, SS>, Cons <Z, ZZ> > protocol) where S : SessionType where SS : SessionList where Z : SessionType where ZZ : SessionList
 {
     return(new TcpClient <S, Cons <S, SS> >(protocol.Serializer));
 }