Photon .NET Client API 4.1.4.8

Public Member Functions | List of all members
ExitGames.Client.Photon.SocketNative Class Reference
Inheritance diagram for ExitGames.Client.Photon.SocketNative:
ExitGames.Client.Photon.IPhotonSocket

Public Member Functions

static IntPtr egconnect ([MarshalAs(UnmanagedType.LPStr)] string address)
 
static IntPtr egconnectWithProtocol ([MarshalAs(UnmanagedType.LPStr)] string address, byte connectionProtocol)
 
static IntPtr egconnectWithProtocols ([MarshalAs(UnmanagedType.LPStr)] string address, byte connectionProtocol, [MarshalAs(UnmanagedType.LPStr)] string appID, [MarshalAs(UnmanagedType.LPStr)] string serializationProtocolString, byte serializationProtocolMajor, byte serializationProtocolMinor)
 
static byte eggetState (IntPtr pConnectionHandler)
 
static void egdisconnect (IntPtr pConnectionHandler)
 
static uint egservice (IntPtr pConnectionHandler)
 
static bool egsend (IntPtr pConnectionHandler, byte[] arr, uint size)
 
static uint egread (IntPtr pConnectionHandler, byte[] arr, ref uint size)
 
delegate void LogCallbackDelegate (IntPtr pUserData, int level, [MarshalAs(UnmanagedType.LPStr)] string msg)
 
static void egsetSocketLoggingCallback (IntPtr pConnectionHandler, IntPtr userData, LogCallbackDelegate callback)
 
static bool egsetSocketLoggingLevel (IntPtr pConnectionHandler, int level)
 
static bool eggetUsingIPv6 (IntPtr pConnectionHandler)
 
 SocketNative (PeerBase npeer)
 
void Dispose ()
 
override bool Connect ()
 
override bool Disconnect ()
 
override PhotonSocketError Send (byte[] data, int length)
 used by PhotonPeer* More...
 
override PhotonSocketError Receive (out byte[] data)
 
void ReceiveLoop ()
 
- Public Member Functions inherited from ExitGames.Client.Photon.IPhotonSocket
 IPhotonSocket (PeerBase peerBase)
 
void HandleReceivedDatagram (byte[] inBuffer, int length, bool willBeReused)
 
bool ReportDebugOfLevel (DebugLevel levelOfMessage)
 
void EnqueueDebugReturn (DebugLevel debugLevel, string message)
 

Additional Inherited Members

- Public Attributes inherited from ExitGames.Client.Photon.IPhotonSocket
bool PollReceive
 
string ConnectAddress
 Address, as defined via a Connect() call. Including protocol, port and or path. More...
 
- Protected Member Functions inherited from ExitGames.Client.Photon.IPhotonSocket
bool TryParseAddress (string url, out string address, out ushort port, out string urlProtocol, out string urlPath)
 Separates the given address into address (host name or IP) and port. Port must be included after colon! More...
 
- Protected Attributes inherited from ExitGames.Client.Photon.IPhotonSocket
readonly ConnectionProtocol Protocol
 The protocol for this socket, defined in constructor. More...
 
- Properties inherited from ExitGames.Client.Photon.IPhotonSocket
IPhotonPeerListener Listener [get]
 
PhotonSocketState State [get, protected set]
 
bool Connected [get]
 
string ServerAddress [get, protected set]
 Contains only the server's hostname (stripped protocol, port and or path). Set in IPhotonSocket.Connect(). More...
 
string ProxyServerAddress [get, protected set]
 
static string ServerIpAddress [get, protected set]
 Contains the IP address of the previously resolved ServerAddress (or empty, if GetIpAddress wasn't used). More...
 
int ServerPort [get, protected set]
 Contains only the server's port address (as string). Set in IphotonSocket.Connect(). More...
 
bool AddressResolvedAsIpv6 [get, set]
 Where available, this exposes if the server's address was resolved into an IPv6 address or not. More...
 
string UrlProtocol [get, protected set]
 
string UrlPath [get, protected set]
 

Constructor & Destructor Documentation

◆ SocketNative()

ExitGames.Client.Photon.SocketNative.SocketNative ( PeerBase  npeer)
inline

Member Function Documentation

◆ Connect()

override bool ExitGames.Client.Photon.SocketNative.Connect ( )
inlinevirtual

◆ Disconnect()

override bool ExitGames.Client.Photon.SocketNative.Disconnect ( )
inlinevirtual

◆ Dispose()

void ExitGames.Client.Photon.SocketNative.Dispose ( )
inline

◆ egconnect()

static IntPtr ExitGames.Client.Photon.SocketNative.egconnect ( [MarshalAs(UnmanagedType.LPStr)] string  address)

◆ egconnectWithProtocol()

static IntPtr ExitGames.Client.Photon.SocketNative.egconnectWithProtocol ( [MarshalAs(UnmanagedType.LPStr)] string  address,
byte  connectionProtocol 
)

◆ egconnectWithProtocols()

static IntPtr ExitGames.Client.Photon.SocketNative.egconnectWithProtocols ( [MarshalAs(UnmanagedType.LPStr)] string  address,
byte  connectionProtocol,
[MarshalAs(UnmanagedType.LPStr)] string  appID,
[MarshalAs(UnmanagedType.LPStr)] string  serializationProtocolString,
byte  serializationProtocolMajor,
byte  serializationProtocolMinor 
)

◆ egdisconnect()

static void ExitGames.Client.Photon.SocketNative.egdisconnect ( IntPtr  pConnectionHandler)

◆ eggetState()

static byte ExitGames.Client.Photon.SocketNative.eggetState ( IntPtr  pConnectionHandler)

◆ eggetUsingIPv6()

static bool ExitGames.Client.Photon.SocketNative.eggetUsingIPv6 ( IntPtr  pConnectionHandler)

◆ egread()

static uint ExitGames.Client.Photon.SocketNative.egread ( IntPtr  pConnectionHandler,
byte[]  arr,
ref uint  size 
)

◆ egsend()

static bool ExitGames.Client.Photon.SocketNative.egsend ( IntPtr  pConnectionHandler,
byte[]  arr,
uint  size 
)

◆ egservice()

static uint ExitGames.Client.Photon.SocketNative.egservice ( IntPtr  pConnectionHandler)

◆ egsetSocketLoggingCallback()

static void ExitGames.Client.Photon.SocketNative.egsetSocketLoggingCallback ( IntPtr  pConnectionHandler,
IntPtr  userData,
LogCallbackDelegate  callback 
)

◆ egsetSocketLoggingLevel()

static bool ExitGames.Client.Photon.SocketNative.egsetSocketLoggingLevel ( IntPtr  pConnectionHandler,
int  level 
)

◆ LogCallbackDelegate()

delegate void ExitGames.Client.Photon.SocketNative.LogCallbackDelegate ( IntPtr  pUserData,
int  level,
[MarshalAs(UnmanagedType.LPStr)] string  msg 
)

◆ Receive()

override PhotonSocketError ExitGames.Client.Photon.SocketNative.Receive ( out byte[]  data)
inlinevirtual

◆ ReceiveLoop()

void ExitGames.Client.Photon.SocketNative.ReceiveLoop ( )
inline

◆ Send()

override PhotonSocketError ExitGames.Client.Photon.SocketNative.Send ( byte[]  data,
int  length 
)
inlinevirtual

used by PhotonPeer*

Implements ExitGames.Client.Photon.IPhotonSocket.


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