Facepunch.Steamworks Wiki

Steamworks.SteamNetworkingSockets

Events

Methods

Connect to a socket created via CreateListenSocketIP
static T ConnectRelay( SteamId serverId, int virtualport = 0 )
This method should be used to allow people to connect to the server. It return a ConnectionManager instance (you need to create a class that inherit from ConnectionManager) that you need to keep in order to send and receive data from server. serverID need to be the SteamId from the host.
Creates a "server" socket that listens for clients to connect to by calling Connect, over ordinary UDP (IPv4 or IPv6). To use this you should pass a class that inherits ISocketManager. You can use SocketManager to get connections and send messages, but the ISocketManager class will received all the appropriate callbacks.
static T CreateRelaySocket( int virtualport = 0 )
Creates a "server" socket that listens for clients to connect to by calling Connect, over SDR (Steam Datagram Relay) . To use this you should pass a class that inherits ISocketManager or SocketManager. You can use SocketManager to get connections and send messages, but the ISocketManager class will received all the appropriate callbacks.