Net_GameServerQuery
[ class tree: Net_GameServerQuery ] [ index: Net_GameServerQuery ] [ all elements ]

Class: Net_GameServerQuery_Communicate

Source Location: /Net_GameServerQuery-0.2.0/GameServerQuery/Communicate.php

Class Overview


Sends and recieves information from servers


Author(s):

Version:

  • $Revision: 1.15 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 30]
Sends and recieves information from servers
  • Author: Aidan Lister <aidan@php.net>
  • Version: $Revision: 1.15 $


[ Top ]


Method Detail

close   [line 170]

void close( string $sockets)

Close each socket
  • Access: public

Parameters:

string   $sockets   —  An array of sockets

[ Top ]

concat   [line 184]

array concat( array $packets)

Concatonate multiple packets
  • Return: An array of joined packets
  • Access: public

Parameters:

array   $packets   —  An array of packets

[ Top ]

listen   [line 126]

array listen( array $sockets, array $sockets_list, int $timeout)

Listen to an array of sockets
  • Return: An array of result data
  • Access: public

Parameters:

array   $sockets   —  An array of sockets
array   $sockets_list   —  An array of socket relationships
int   $timeout   —  The maximum time to listen for

[ Top ]

open   [line 68]

array open( array $servers)

Open the sockets
  • Return: An array of sockets and an array of corresponding keys
  • Access: public

Parameters:

array   $servers   —  An array of server data

[ Top ]

query   [line 41]

array query( array $servers, int $timeout)

Perform a batch query

This runs open, write, listen and close sequentially

  • Return: An array of results
  • Access: public

Parameters:

array   $servers   —  An array of server data
int   $timeout   —  A timeout in milliseconds

[ Top ]

write   [line 104]

void write( array $sockets, array $packets)

Write to an array of sockets
  • Access: public

Parameters:

array   $sockets   —  An array of sockets
array   $packets   —  An array of packets

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:58:55 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.