C# Class ClientApp.networking.ServerConnection

Inheritance: ClientInterface
Show file Open project: projectgroepA1/ProjectgroepA1 Class Usage Examples

Public Properties

Property Type Description
Sessions List

Protected Properties

Property Type Description
collections X509CertificateCollection

Public Methods

Method Description
ReadPacket ( ) : Packet
SendHistoryPacket ( List List ) : void
ServerConnection ( ) : System
ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
WritePacket ( Packet packet ) : void
disconnectResponse ( bool disconnectOk ) : void
loginResponse ( bool loginOk ) : void
recievePacketBicycleCommand ( PacketBicycleCommand command ) : void
recievePacketChat ( PacketChat chat ) : void
recievePacketSession ( PacketSession ps ) : void
recievePacketSessions ( PacketSessions sessionsPacket ) : void
recieveResponse ( bool recieveOk ) : void

Method Details

ReadPacket() public method

public ReadPacket ( ) : Packet
return NetLib.Packet

SendHistoryPacket() public method

public SendHistoryPacket ( List List ) : void
List List
return void

ServerConnection() public method

public ServerConnection ( ) : System
return System

ValidateServerCertificate() public static method

public static ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
sender object
certificate X509Certificate
chain X509Chain
sslPolicyErrors SslPolicyErrors
return bool

WritePacket() public method

public WritePacket ( Packet packet ) : void
packet NetLib.Packet
return void

disconnectResponse() public method

public disconnectResponse ( bool disconnectOk ) : void
disconnectOk bool
return void

loginResponse() public method

public loginResponse ( bool loginOk ) : void
loginOk bool
return void

recievePacketBicycleCommand() public method

public recievePacketBicycleCommand ( PacketBicycleCommand command ) : void
command NetLib.PacketBicycleCommand
return void

recievePacketChat() public method

public recievePacketChat ( PacketChat chat ) : void
chat NetLib.PacketChat
return void

recievePacketSession() public method

public recievePacketSession ( PacketSession ps ) : void
ps NetLib.PacketSession
return void

recievePacketSessions() public method

public recievePacketSessions ( PacketSessions sessionsPacket ) : void
sessionsPacket PacketSessions
return void

recieveResponse() public method

public recieveResponse ( bool recieveOk ) : void
recieveOk bool
return void

Property Details

Sessions public static property

public static List Sessions
return List

collections protected property

protected X509CertificateCollection collections
return X509CertificateCollection