Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Class [ <internal:pthreads> <iterateable> class Socket extends Threaded implements Collectable, Traversable ] {
- - Constants [43] {
- Constant [ public integer AF_UNIX ] { 1 }
- Constant [ public integer AF_INET ] { 2 }
- Constant [ public integer AF_INET6 ] { 10 }
- Constant [ public integer SOCK_STREAM ] { 1 }
- Constant [ public integer SOCK_DGRAM ] { 2 }
- Constant [ public integer SOCK_RAW ] { 3 }
- Constant [ public integer SOCK_SEQPACKET ] { 5 }
- Constant [ public integer SOCK_RDM ] { 4 }
- Constant [ public integer SO_DEBUG ] { 1 }
- Constant [ public integer SO_REUSEADDR ] { 2 }
- Constant [ public integer SO_REUSEPORT ] { 15 }
- Constant [ public integer SO_KEEPALIVE ] { 9 }
- Constant [ public integer SO_DONTROUTE ] { 5 }
- Constant [ public integer SO_LINGER ] { 13 }
- Constant [ public integer SO_BROADCAST ] { 6 }
- Constant [ public integer SO_OOBINLINE ] { 10 }
- Constant [ public integer SO_SNDBUF ] { 7 }
- Constant [ public integer SO_RECBUF ] { 8 }
- Constant [ public integer SO_SNDLOWAT ] { 19 }
- Constant [ public integer SO_RCVLOWAT ] { 18 }
- Constant [ public integer SO_SNDTIMEO ] { 21 }
- Constant [ public integer SO_RCVTIMEO ] { 20 }
- Constant [ public integer SO_TYPE ] { 3 }
- Constant [ public integer SO_ERROR ] { 4 }
- Constant [ public integer SO_BINDTODEVICE ] { 25 }
- Constant [ public integer SOMAXCONN ] { 128 }
- Constant [ public integer TCP_NODELAY ] { 1 }
- Constant [ public integer SOL_SOCKET ] { 1 }
- Constant [ public integer SOL_TCP ] { 6 }
- Constant [ public integer SOL_UDP ] { 17 }
- Constant [ public integer MSG_OOB ] { 1 }
- Constant [ public integer MSG_WAITALL ] { 256 }
- Constant [ public integer MSG_CTRUNC ] { 8 }
- Constant [ public integer MSG_TRUNC ] { 32 }
- Constant [ public integer MSG_PEEK ] { 2 }
- Constant [ public integer MSG_DONTROUTE ] { 4 }
- Constant [ public integer MSG_EOR ] { 128 }
- Constant [ public integer MSG_CONFIRM ] { 2048 }
- Constant [ public integer MSG_ERRQUEUE ] { 8192 }
- Constant [ public integer MSG_NOSIGNAL ] { 16384 }
- Constant [ public integer MSG_MORE ] { 32768 }
- Constant [ public integer MSG_WAITFORONE ] { 65536 }
- Constant [ public integer MSG_CMSG_CLOEXEC ] { 1073741824 }
- }
- - Static properties [0] {
- }
- - Static methods [1] {
- Method [ <internal:pthreads, inherits Threaded> static public method extend ] {
- - Parameters [1] {
- Parameter #0 [ <required> $class ]
- }
- }
- }
- - Properties [0] {
- }
- - Methods [30] {
- Method [ <internal:pthreads, ctor> public method __construct ] {
- - Parameters [3] {
- Parameter #0 [ <required> integer $domain ]
- Parameter #1 [ <required> integer $type ]
- Parameter #2 [ <required> integer $protocol ]
- }
- }
- Method [ <internal:pthreads> public method setOption ] {
- - Parameters [3] {
- Parameter #0 [ <required> integer $level ]
- Parameter #1 [ <required> integer $name ]
- Parameter #2 [ <optional> integer $value ]
- }
- - Return [ boolean ]
- }
- Method [ <internal:pthreads> public method getOption ] {
- - Parameters [2] {
- Parameter #0 [ <required> integer $level ]
- Parameter #1 [ <required> integer $name ]
- }
- - Return [ integer ]
- }
- Method [ <internal:pthreads> public method bind ] {
- - Parameters [2] {
- Parameter #0 [ <required> string $host ]
- Parameter #1 [ <required> integer $port ]
- }
- - Return [ boolean ]
- }
- Method [ <internal:pthreads> public method listen ] {
- - Parameters [1] {
- Parameter #0 [ <required> integer $backlog ]
- }
- - Return [ boolean ]
- }
- Method [ <internal:pthreads> public method accept ] {
- - Parameters [1] {
- Parameter #0 [ <optional> $class ]
- }
- }
- Method [ <internal:pthreads> public method connect ] {
- - Parameters [2] {
- Parameter #0 [ <required> string $host ]
- Parameter #1 [ <required> integer $port ]
- }
- - Return [ boolean ]
- }
- Method [ <internal:pthreads> public method read ] {
- - Parameters [2] {
- Parameter #0 [ <optional> integer $length ]
- Parameter #1 [ <optional> integer $flags ]
- }
- - Return [ string ]
- }
- Method [ <internal:pthreads> public method write ] {
- - Parameters [2] {
- Parameter #0 [ <required> string $buffer ]
- Parameter #1 [ <optional> integer $length ]
- }
- - Return [ integer ]
- }
- Method [ <internal:pthreads> public method send ] {
- - Parameters [3] {
- Parameter #0 [ <required> string $buffer ]
- Parameter #1 [ <required> integer $length ]
- Parameter #2 [ <required> integer $flags ]
- }
- - Return [ integer ]
- }
- Method [ <internal:pthreads> public method setBlocking ] {
- - Parameters [1] {
- Parameter #0 [ <required> boolean $blocking ]
- }
- - Return [ boolean ]
- }
- Method [ <internal:pthreads> public method getPeerName ] {
- - Parameters [1] {
- Parameter #0 [ <optional> boolean $port ]
- }
- - Return [ array ]
- }
- Method [ <internal:pthreads> public method getSockName ] {
- - Parameters [1] {
- Parameter #0 [ <optional> boolean $port ]
- }
- - Return [ array ]
- }
- Method [ <internal:pthreads> public method close ] {
- - Parameters [0] {
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement