Photon .NET Client API
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Properties | List of all members
ExitGames.Client.Photon.IPhotonSocket Class Referenceabstract
Inheritance diagram for ExitGames.Client.Photon.IPhotonSocket:
ExitGames.Client.Photon.SocketUdpNativeDynamic ExitGames.Client.Photon.SocketUdpNativeStatic

Public Member Functions

 IPhotonSocket (PeerBase peerBase)
 
virtual bool Connect ()
 
abstract bool Disconnect ()
 
abstract PhotonSocketError Send (byte[] data, int length)
 
abstract PhotonSocketError Receive (out byte[] data)
 
void HandleReceivedDatagram (byte[] inBuffer, int length, bool willBeReused)
 
bool ReportDebugOfLevel (DebugLevel levelOfMessage)
 
void EnqueueDebugReturn (DebugLevel debugLevel, string message)
 

Public Attributes

bool PollReceive
 

Protected Member Functions

void HandleException (StatusCode statusCode)
 
bool TryParseAddress (string addressAndPort, out string address, out ushort port)
 Separates the given address into address (host name or IP) and port. Port must be included after colon! More...
 

Static Protected Member Functions

static IPAddress GetIpAddress (string serverIp)
 

Properties

IPhotonPeerListener Listener [get]
 
ConnectionProtocol Protocol [get, set]
 
PhotonSocketState State [get, set]
 
string ServerAddress [get, set]
 
int ServerPort [get, set]
 
bool Connected [get]
 
int MTU [get]
 

Constructor & Destructor Documentation

ExitGames.Client.Photon.IPhotonSocket.IPhotonSocket ( PeerBase  peerBase)
inline

Member Function Documentation

virtual bool ExitGames.Client.Photon.IPhotonSocket.Connect ( )
inlinevirtual
abstract bool ExitGames.Client.Photon.IPhotonSocket.Disconnect ( )
pure virtual
void ExitGames.Client.Photon.IPhotonSocket.EnqueueDebugReturn ( DebugLevel  debugLevel,
string  message 
)
inline
static IPAddress ExitGames.Client.Photon.IPhotonSocket.GetIpAddress ( string  serverIp)
inlinestaticprotected
void ExitGames.Client.Photon.IPhotonSocket.HandleException ( StatusCode  statusCode)
inlineprotected
void ExitGames.Client.Photon.IPhotonSocket.HandleReceivedDatagram ( byte[]  inBuffer,
int  length,
bool  willBeReused 
)
inline
abstract PhotonSocketError ExitGames.Client.Photon.IPhotonSocket.Receive ( out byte[]  data)
pure virtual
bool ExitGames.Client.Photon.IPhotonSocket.ReportDebugOfLevel ( DebugLevel  levelOfMessage)
inline
abstract PhotonSocketError ExitGames.Client.Photon.IPhotonSocket.Send ( byte[]  data,
int  length 
)
pure virtual
bool ExitGames.Client.Photon.IPhotonSocket.TryParseAddress ( string  addressAndPort,
out string  address,
out ushort  port 
)
inlineprotected

Separates the given address into address (host name or IP) and port. Port must be included after colon!

This method expects any address to include a port. The final ':' in addressAndPort has to separate it. IPv6 addresses have multiple colons and must use brackets to separate address from port.

Examples: ns.exitgames.com:5058 http://[2001:db8:1f70::999:de8:7648:6e8]:100/ See: http://serverfault.com/questions/205793/how-can-one-distinguish-the-host-and-the-port-in-an-ipv6-url

Member Data Documentation

bool ExitGames.Client.Photon.IPhotonSocket.PollReceive

Property Documentation

bool ExitGames.Client.Photon.IPhotonSocket.Connected
get
IPhotonPeerListener ExitGames.Client.Photon.IPhotonSocket.Listener
getprotected
int ExitGames.Client.Photon.IPhotonSocket.MTU
get
ConnectionProtocol ExitGames.Client.Photon.IPhotonSocket.Protocol
getset
string ExitGames.Client.Photon.IPhotonSocket.ServerAddress
getset
int ExitGames.Client.Photon.IPhotonSocket.ServerPort
getset
PhotonSocketState ExitGames.Client.Photon.IPhotonSocket.State
getset

The documentation for this class was generated from the following file: