public PSocket(PSocket other) : this(PapillonPINVOKE.new_PSocket__SWIG_1(PSocket.getCPtr(other)), true) { if (PapillonPINVOKE.SWIGPendingException.Pending) { throw PapillonPINVOKE.SWIGPendingException.Retrieve(); } }
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); }