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