Ejemplo n.º 1
0
 /// <summary></summary>
 /// <param name="Handle">The handle of an already existing connection</param>
 public Socket(ws2_32.AddressFamily family, ws2_32.ProtocolType protocol, ws2_32.SocketType type, IntPtr Handle)
     : this(family, protocol, type)
 {
     this.Handle = Handle;
 }
Ejemplo n.º 2
0
 //New client - Server Accepted
 internal unsafe Socket(ws2_32.AddressFamily family, ws2_32.ProtocolType protocol, ws2_32.SocketType type,
                        IntPtr Handle, ws2_32.sockaddr_in addr, HeaderTypeSize headerSize, uint SendBufferSize, uint ReceiveBufferSize)
     : this(family, protocol, type, Handle)
 {
     this.SendBufferSize    = SendBufferSize;
     this.ReceiveBufferSize = ReceiveBufferSize;
     this.RemoteIp          = Marshal.PtrToStringAnsi(new IntPtr(ws2_32.inet_ntoa(addr.sin_addr)));
     this.Port       = (uint)ws2_32.ntohs(addr.sin_port);
     this.HeaderSize = headerSize;
 }
Ejemplo n.º 3
0
 public Socket(ws2_32.AddressFamily family, ws2_32.ProtocolType protocol, ws2_32.SocketType type)
 {
     this.protocol = protocol;
     this.type     = type;
     this.family   = family;
 }
Ejemplo n.º 4
0
 /// <summary></summary>
 /// <param name="Handle">The handle of an already existing connection</param>
 public Socket(ws2_32.AddressFamily family, ws2_32.ProtocolType protocol, ws2_32.SocketType type, IntPtr Handle, uint SendBufferSize, uint ReceiveBufferSize)
     : this(family, protocol, type, Handle)
 {
     this.SendBufferSize    = SendBufferSize;
     this.ReceiveBufferSize = ReceiveBufferSize;
 }