Class fsock
Methods summary
public
|
|
public
|
|
public
&
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
integer
|
|
private
|
|
public
string
|
|
public
string
|
|
public
array
|
|
public
string
|
|
public
integer
|
#
write_HTML( $destination, string $data = "", string $type = "POST", string $user = "", string $pw = "", mixed $header = "" )
send a HTML Request (alias for "write_HTTP"), sample: $sock->write_HTML("test.php", "x=Hello&y=World"); |
public
integer
|
|
public
integer
|
#
write_HTTP( $destination, string $data = "", string $type = "POST", string $user = "", string $pw = "", mixed $header = "" )
send a HTTP Request, sample: $sock->write_HTTP("/", "12345 ?>", "", "", Content-Type: text/xml\r\n); |
Properties summary
private
|
$m_logger
|
#
null
|
private
|
$m_ip
|
|
private
|
$m_port
|
|
private
|
$m_fp
|
#
null
|
private
string
|
$m_protocol
|
#
""
|
private
string
|
$m_header
|
#
""
|
private
string
|
$m_hdata
|
#
""
|
private
boolean
|
$m_is_read_wait
|
#
false
|
private
boolean
|
$m_is_stream
|
#
false
|
public
integer
|
$m_error
errorcode |
#
0
|
public
string
|
$m_errormsg
error message |
#
""
|
public
mixed
|
$m_trace_delAfter
size before trace file will set to zero |
#
"1024K"
|
public
string
|
$m_trace_path
path for trace file |
#
""
|
public
string
|
$m_trace_file
filename of tracefile |
#
""
|
public
string
|
$m_user_agent
only used by method "write_HTML" and "write_XML" |
#
""
|
public
string
|
$m_http_version
|
#
"1.0"
|
public
array
|
$m_cookies
only used by method "write_HTML" and "write_XML", array of cookie strings |
#
array()
|
public
integer
|
$m_socket_timeout
socket timeout sec. |
#
10
|
public
boolean
|
$m_socket_blocking
socket blocking |
#
false
|
public
string
|
$m_trace_critical_section_id
enable critical section for write trace files |
#
null
|
public
string
|
$m_trace_critical_section_path
path to share the critical section for write trace files |
#
"./"
|
public
integer
|
$m_trace_critical_section_maxlock_ms
max lock time for zombie processes |
#
1000
|
public
integer
|
$m_trace_critical_section_sleep_ms
sleep for retry enter critical section |
#
10
|
public
boolean
|
$m_show_warning
show warnings |
#
true
|
public
boolean
|
$m_trace_sqlite
write the trace to a SQLite file instead of a text file |
#
false
|
public
boolean
|
$m_dns_cache
to not resolve ip from hostname each time |
#
false
|
public
integer
|
$m_dns_cache_ttl
|
#
3600
|
public
boolean
|
$m_fix_uri_endpoint
add a slash to the URI endpoint as sample /services => /services/ |
#
true
|