Table of Contents

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

INetworkChannel

GetUdpChannel(string)

Returns a previously registered channeled, null otherwise

INetworkChannel GetUdpChannel(string channelName)

Parameters

channelName string

Returns

INetworkChannel

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 string

Unique channel identifier

Returns

INetworkChannel

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.

INetworkChannel RegisterUdpChannel(string channelName)

Parameters

channelName string

Unique channel identifier

Returns

INetworkChannel