//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; }
/// <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; }
public Socket(ws2_32.AddressFamily family, ws2_32.ProtocolType protocol, ws2_32.SocketType type) { this.protocol = protocol; this.type = type; this.family = family; }
/// <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; }