Esempio n. 1
0
 void ConnectionCallback(IntPtr listener, IntPtr socket, sockaddr_in address, int socklen, IntPtr ctx)
 {
     try
     {
         if (ConnectionAccepted != null)
             ConnectionAccepted(socket, address.ToIPEndPoint());
     }
     catch (Exception e)
     {
         Debug.WriteLine("Exception during connection listener callback.");
         //Extensions.HandleException("EVConnListener callback", e);
     }
 }
Esempio n. 2
0
 private static unsafe extern IntPtr evconnlistener_new_bind(IntPtr event_base, IntPtr cb, IntPtr ctx, short flags, short backlog, ref sockaddr_in sa, short socklen);