Interface INetworkAPI
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public interface INetworkAPI
- Extension Methods
Methods
GetChannel(string)
Returns a previously registered channeled, null otherwise
INetworkChannel GetChannel(string channelName)
Parameters
channelName
string
Returns
GetUdpChannel(string)
Returns a previously registered channeled, null otherwise
INetworkChannel GetUdpChannel(string channelName)
Parameters
channelName
string
Returns
RegisterChannel(string)
Supplies you with your very own and personal network channel with which you can send packets to the server. Use the same channelName on the client and server to have them link up.
INetworkChannel RegisterChannel(string channelName)
Parameters
channelName
stringUnique channel identifier
Returns
RegisterUdpChannel(string)
Supplies you with your very own and personal network channel with which you can send packets to the server. Use the same channelName on the client and server to have them link up. Do not send larger messages then 508 bytes since some clients may be behind NAT/firwalls that may drop your packets if they get fragmented
INetworkChannel RegisterUdpChannel(string channelName)
Parameters
channelName
stringUnique channel identifier