Advertisement
Guest User

Untitled

a guest
May 1st, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. Class [ <internal:pthreads> <iterateable> class Socket extends Threaded implements Collectable, Traversable ] {
  2.  
  3. - Constants [43] {
  4. Constant [ public integer AF_UNIX ] { 1 }
  5. Constant [ public integer AF_INET ] { 2 }
  6. Constant [ public integer AF_INET6 ] { 10 }
  7. Constant [ public integer SOCK_STREAM ] { 1 }
  8. Constant [ public integer SOCK_DGRAM ] { 2 }
  9. Constant [ public integer SOCK_RAW ] { 3 }
  10. Constant [ public integer SOCK_SEQPACKET ] { 5 }
  11. Constant [ public integer SOCK_RDM ] { 4 }
  12. Constant [ public integer SO_DEBUG ] { 1 }
  13. Constant [ public integer SO_REUSEADDR ] { 2 }
  14. Constant [ public integer SO_REUSEPORT ] { 15 }
  15. Constant [ public integer SO_KEEPALIVE ] { 9 }
  16. Constant [ public integer SO_DONTROUTE ] { 5 }
  17. Constant [ public integer SO_LINGER ] { 13 }
  18. Constant [ public integer SO_BROADCAST ] { 6 }
  19. Constant [ public integer SO_OOBINLINE ] { 10 }
  20. Constant [ public integer SO_SNDBUF ] { 7 }
  21. Constant [ public integer SO_RECBUF ] { 8 }
  22. Constant [ public integer SO_SNDLOWAT ] { 19 }
  23. Constant [ public integer SO_RCVLOWAT ] { 18 }
  24. Constant [ public integer SO_SNDTIMEO ] { 21 }
  25. Constant [ public integer SO_RCVTIMEO ] { 20 }
  26. Constant [ public integer SO_TYPE ] { 3 }
  27. Constant [ public integer SO_ERROR ] { 4 }
  28. Constant [ public integer SO_BINDTODEVICE ] { 25 }
  29. Constant [ public integer SOMAXCONN ] { 128 }
  30. Constant [ public integer TCP_NODELAY ] { 1 }
  31. Constant [ public integer SOL_SOCKET ] { 1 }
  32. Constant [ public integer SOL_TCP ] { 6 }
  33. Constant [ public integer SOL_UDP ] { 17 }
  34. Constant [ public integer MSG_OOB ] { 1 }
  35. Constant [ public integer MSG_WAITALL ] { 256 }
  36. Constant [ public integer MSG_CTRUNC ] { 8 }
  37. Constant [ public integer MSG_TRUNC ] { 32 }
  38. Constant [ public integer MSG_PEEK ] { 2 }
  39. Constant [ public integer MSG_DONTROUTE ] { 4 }
  40. Constant [ public integer MSG_EOR ] { 128 }
  41. Constant [ public integer MSG_CONFIRM ] { 2048 }
  42. Constant [ public integer MSG_ERRQUEUE ] { 8192 }
  43. Constant [ public integer MSG_NOSIGNAL ] { 16384 }
  44. Constant [ public integer MSG_MORE ] { 32768 }
  45. Constant [ public integer MSG_WAITFORONE ] { 65536 }
  46. Constant [ public integer MSG_CMSG_CLOEXEC ] { 1073741824 }
  47. }
  48.  
  49. - Static properties [0] {
  50. }
  51.  
  52. - Static methods [1] {
  53. Method [ <internal:pthreads, inherits Threaded> static public method extend ] {
  54.  
  55. - Parameters [1] {
  56. Parameter #0 [ <required> $class ]
  57. }
  58. }
  59. }
  60.  
  61. - Properties [0] {
  62. }
  63.  
  64. - Methods [30] {
  65. Method [ <internal:pthreads, ctor> public method __construct ] {
  66.  
  67. - Parameters [3] {
  68. Parameter #0 [ <required> integer $domain ]
  69. Parameter #1 [ <required> integer $type ]
  70. Parameter #2 [ <required> integer $protocol ]
  71. }
  72. }
  73.  
  74. Method [ <internal:pthreads> public method setOption ] {
  75.  
  76. - Parameters [3] {
  77. Parameter #0 [ <required> integer $level ]
  78. Parameter #1 [ <required> integer $name ]
  79. Parameter #2 [ <optional> integer $value ]
  80. }
  81. - Return [ boolean ]
  82. }
  83.  
  84. Method [ <internal:pthreads> public method getOption ] {
  85.  
  86. - Parameters [2] {
  87. Parameter #0 [ <required> integer $level ]
  88. Parameter #1 [ <required> integer $name ]
  89. }
  90. - Return [ integer ]
  91. }
  92.  
  93. Method [ <internal:pthreads> public method bind ] {
  94.  
  95. - Parameters [2] {
  96. Parameter #0 [ <required> string $host ]
  97. Parameter #1 [ <required> integer $port ]
  98. }
  99. - Return [ boolean ]
  100. }
  101.  
  102. Method [ <internal:pthreads> public method listen ] {
  103.  
  104. - Parameters [1] {
  105. Parameter #0 [ <required> integer $backlog ]
  106. }
  107. - Return [ boolean ]
  108. }
  109.  
  110. Method [ <internal:pthreads> public method accept ] {
  111.  
  112. - Parameters [1] {
  113. Parameter #0 [ <optional> $class ]
  114. }
  115. }
  116.  
  117. Method [ <internal:pthreads> public method connect ] {
  118.  
  119. - Parameters [2] {
  120. Parameter #0 [ <required> string $host ]
  121. Parameter #1 [ <required> integer $port ]
  122. }
  123. - Return [ boolean ]
  124. }
  125.  
  126. Method [ <internal:pthreads> public method read ] {
  127.  
  128. - Parameters [2] {
  129. Parameter #0 [ <optional> integer $length ]
  130. Parameter #1 [ <optional> integer $flags ]
  131. }
  132. - Return [ string ]
  133. }
  134.  
  135. Method [ <internal:pthreads> public method write ] {
  136.  
  137. - Parameters [2] {
  138. Parameter #0 [ <required> string $buffer ]
  139. Parameter #1 [ <optional> integer $length ]
  140. }
  141. - Return [ integer ]
  142. }
  143.  
  144. Method [ <internal:pthreads> public method send ] {
  145.  
  146. - Parameters [3] {
  147. Parameter #0 [ <required> string $buffer ]
  148. Parameter #1 [ <required> integer $length ]
  149. Parameter #2 [ <required> integer $flags ]
  150. }
  151. - Return [ integer ]
  152. }
  153.  
  154. Method [ <internal:pthreads> public method setBlocking ] {
  155.  
  156. - Parameters [1] {
  157. Parameter #0 [ <required> boolean $blocking ]
  158. }
  159. - Return [ boolean ]
  160. }
  161.  
  162. Method [ <internal:pthreads> public method getPeerName ] {
  163.  
  164. - Parameters [1] {
  165. Parameter #0 [ <optional> boolean $port ]
  166. }
  167. - Return [ array ]
  168. }
  169.  
  170. Method [ <internal:pthreads> public method getSockName ] {
  171.  
  172. - Parameters [1] {
  173. Parameter #0 [ <optional> boolean $port ]
  174. }
  175. - Return [ array ]
  176. }
  177.  
  178. Method [ <internal:pthreads> public method close ] {
  179.  
  180. - Parameters [0] {
  181. }
  182. }
  183. }
  184. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement