Example #1
0
    public static int SocketIndex(this Socket.Mapped mapped, string name)
    {
        int num;

        Socket.Map.Reference socketMapOrNull = mapped.GetSocketMapOrNull();
        socketMapOrNull.SocketIndex(name, out num);
        return(num);
    }
Example #2
0
 public static bool FindSocket(this Socket.Map map, string name, out Socket socket)
 {
     Socket.Map.Reference reference = map;
     return(reference.Socket(name, out socket));
 }
Example #3
0
 public static bool FindSocket <TSocket>(this Socket.Map map, string name, out TSocket socket) where TSocket : Socket, new()
 {
     Socket.Map.Reference reference = map;
     return(reference.Socket <TSocket>(name, out socket));
 }
Example #4
0
 public static bool FindSocket(this Socket.Map map, int index, out Socket socket)
 {
     Socket.Map.Reference reference = map;
     return(reference.Socket(index, out socket));
 }