C# Class Example.Client.ServerConnection

This class maintains the connection to the server and shuttles messages back and forth between the server and client.
Inheritance: MonoBehaviour, ISubscriber
ファイルを表示 Open project: taxes-dev/dotnet-netcode-example

Public Properties

Property Type Description
ServerIPAddress string
ServerIPPort int

Public Methods

Method Description
Handle ( Msg message ) : void
ServerConnection ( ) : System

Private Methods

Method Description
Destroy ( ) : void
ReceiveMessages ( ) : void

Poll the socket for waiting data and parse.

SendQueuedMessages ( ) : void

Send any waiting server messages via the socket.

Start ( ) : void
Update ( ) : void

Method Details

Handle() public method

public Handle ( Msg message ) : void
message Msg
return void

ServerConnection() public method

public ServerConnection ( ) : System
return System

Property Details

ServerIPAddress public_oe property

Server IP to connect to.
public string ServerIPAddress
return string

ServerIPPort public_oe property

Server port to connect to.
public int ServerIPPort
return int