C# Class PHP.Library.StreamSocket

Gives access to various network-based stream properties.
Exibir arquivo Open project: DEVSENSE/Phalanger Class Usage Examples

Public Methods

Method Description
CreatePair ( ProtocolFamily protocolFamily, SocketType type, ProtocolType protocol ) : PHP.Core.PhpArray

Private Methods

Method Description
Accept ( PHP.Core.PhpResource serverSocket ) : bool
Accept ( PHP.Core.PhpResource serverSocket, int timeout ) : bool
Accept ( PHP.Core.PhpResource serverSocket, int timeout, string &peerName ) : bool
Connect ( string remoteSocket, int port, int &errno, string &errstr, double timeout, SocketOptions flags, PHP.Core.StreamContext context ) : SocketStream

Opens a new SocketStream

ConnectClient ( string remoteSocket ) : PHP.Core.PhpResource
ConnectClient ( string remoteSocket, int &errno ) : PHP.Core.PhpResource
ConnectClient ( string remoteSocket, int &errno, string &errstr ) : PHP.Core.PhpResource
ConnectClient ( string remoteSocket, int &errno, string &errstr, double timeout ) : PHP.Core.PhpResource
ConnectClient ( string remoteSocket, int &errno, string &errstr, double timeout, SocketOptions flags ) : PHP.Core.PhpResource
ConnectClient ( string remoteSocket, int &errno, string &errstr, double timeout, SocketOptions flags, PHP.Core.PhpResource context ) : PHP.Core.PhpResource
ConnectResultCallback ( IAsyncResult res ) : void
ConnectServer ( string localSocket ) : PHP.Core.PhpResource
ConnectServer ( string localSocket, int &errno ) : PHP.Core.PhpResource
ConnectServer ( string localSocket, int &errno, string &errstr ) : PHP.Core.PhpResource
ConnectServer ( string localSocket, int &errno, string &errstr, double timeout ) : PHP.Core.PhpResource
ConnectServer ( string localSocket, int &errno, string &errstr, double timeout, SocketOptions flags ) : PHP.Core.PhpResource
ConnectServer ( string localSocket, int &errno, string &errstr, double timeout, SocketOptions flags, PHP.Core.PhpResource context ) : PHP.Core.PhpResource
GetTransports ( ) : PHP.Core.PhpArray
ReceiveFrom ( PHP.Core.PhpResource socket, int length ) : string
ReceiveFrom ( PHP.Core.PhpResource socket, int length, SendReceiveOptions flags ) : string
ReceiveFrom ( PHP.Core.PhpResource socket, int length, SendReceiveOptions flags, string &address ) : string
SendTo ( PHP.Core.PhpResource socket, string data ) : int
SendTo ( PHP.Core.PhpResource socket, string data, SendReceiveOptions flags ) : int
SendTo ( PHP.Core.PhpResource socket, string data, SendReceiveOptions flags, string address ) : int
SocketGetName ( PHP.Core.PhpResource handle, bool wantPeer ) : string

Method Details

CreatePair() public static method

public static CreatePair ( ProtocolFamily protocolFamily, SocketType type, ProtocolType protocol ) : PHP.Core.PhpArray
protocolFamily ProtocolFamily
type SocketType
protocol ProtocolType
return PHP.Core.PhpArray