public PSocket(PSocket other) : this(PapillonPINVOKE.new_PSocket__SWIG_1(PSocket.getCPtr(other)), true) { if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } }
public void TestPSocket() { PSocket sut = new PSocket( System.Net.Sockets.AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp ); Assert.NotNull(sut); }
public static PResult Open(PSocket socket, PSocket.ESocketType socketType) { PResult ret = new PResult(PapillonPINVOKE.PSocket_Open__SWIG_2(PSocket.getCPtr(socket), (int)socketType), true); if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(PSocket obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }