Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Phastlight
Module
NET
Socket
PHP Class Phastlight\Module\NET\Socket
Inheritance:
extends
Phastlight\EventEmitter
Show file
Open project: phastlight/phastlight
Public Methods
Method
Description
connect
(
$port
,
$host
,
$connectionListener
)
end
(
$data
= null )
getType
( )
setType
(
$type
)
whether this socket should close or not
write
(
$data
,
$callback
= '' )
Method Details
connect()
public
method
public
connect
(
$port
,
$host
,
$connectionListener
)
end()
public
method
public
end
(
$data
= null )
getType()
public
method
public
getType
( )
setType()
public
method
whether this socket should close or not
public
setType
(
$type
)
write()
public
method
public
write
(
$data
,
$callback
= '' )