Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

apd_set_session_trace_socket(3) [php man page]

APD_SET_SESSION_TRACE_SOCKET(3) 					 1					   APD_SET_SESSION_TRACE_SOCKET(3)

apd_set_session_trace_socket - Starts the remote session debugging

SYNOPSIS
bool apd_set_session_trace_socket (string $tcp_server, int $socket_type, int $port, int $debug_level) DESCRIPTION
Connects to the specified $tcp_server (eg. tcplisten) and sends debugging data to the socket. PARAMETERS
o $tcp_server - IP or Unix Domain socket (like a file) of the TCP server. o $socket_type - Can be AF_UNIX for file based sockets or APD_AF_INET for standard tcp/ip. o $port - You can use any port, but higher numbers are better as most of the lower numbers may be used by other system services. o $ debug_level -An integer which is formed by adding together the XXX_TRACE constants.It is not recommended to use MEMORY_TRACE. It is very slow and does not appear to be accurate. ASSIGNMENT_TRACE is not implemented yet.To turn on all functional traces (TIM- ING, FUNCTIONS, ARGS SUMMARY (like strace -c)) use the value 99 RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 apd_set_session_trace_socket(3) example <?php apd_set_session_trace_socket("127.0.0.1",APD_AF_INET,7112,0); ?> PHP Documentation Group APD_SET_SESSION_TRACE_SOCKET(3)

Check Out this Related Man Page

SOCKET_GETPEERNAME(3)							 1						     SOCKET_GETPEERNAME(3)

socket_getpeername  -  Queries the remote side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on
its type

SYNOPSIS
bool socket_getpeername (resource $socket, string &$address, [int &$port]) DESCRIPTION
Queries the remote side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type. PARAMETERS
o $socket - A valid socket resource created with socket_create(3) or socket_accept(3). o $address - If the given socket is of type AF_INET or AF_INET6, socket_getpeername(3) will return the peers (remote) IP address in appropri- ate notation (e.g. 127.0.0.1 or fe80::1) in the $address parameter and, if the optional $port parameter is present, also the associated port. If the given socket is of type AF_UNIX, socket_getpeername(3) will return the Unix filesystem path (e.g. /var/run/daemon.sock) in the $address parameter. o $port - If given, this will hold the port associated to $address. RETURN VALUES
Returns TRUE on success or FALSE on failure. socket_getpeername(3) may also return FALSE if the socket type is not any of AF_INET, AF_INET6, or AF_UNIX, in which case the last socket error code is not updated. NOTES
Note socket_getpeername(3) should not be used with AF_UNIX sockets created with socket_accept(3). Only sockets created with socket_con- nect(3) or a primary server socket following a call to socket_bind(3) will return meaningful values. Note For having socket_getpeername(3) to return a meaningful value, the socket it is applied upon must of course be one for which the concept of "peer" makes sense. SEE ALSO
socket_getsockname(3), socket_last_error(3), socket_strerror(3). PHP Documentation Group SOCKET_GETPEERNAME(3)
Man Page