프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$allowselfsigned | boolean | Allow self-signed? | |
$cafile | string | CA file | |
$certfile | string | Certificate file | |
$ctx | mixed | Context | |
$ctxname | string | Context name | |
$enabled | boolean | Enabled? | |
$erroneous | boolean | Erroneous? | |
$ev | EventListener\Event | Event | |
$fd | mixed | File descriptor | |
$listenerMode | boolean | Listener mode? | |
$passphrase | string | Passphrase | |
$pid | integer | PID of process which bound this socket | |
$pkfile | string | Private key file | |
$pool | Pool | ||
$reuse | boolean | Reuse? | |
$revision | integer | Revision | |
$source | string | Source | |
$ssl | mixed | SSL | |
$tls | mixed | TLS | |
$uri | string | URI | |
$verifydepth | integer | Verify depth | |
$verifypeer | boolean | Verify peer? |
메소드 | 설명 | |
---|---|---|
__construct ( $uri ) : object | Constructor | |
__destruct ( ) : void | Destructor | |
__toString ( ) : string | toString handler | |
attachTo ( |
Attach to ConnectionPool | |
bindSocket ( ) : boolean | Bind given addreess | |
close ( ) : void | Close each of binded sockets. | |
disable ( ) : void | Disable all events of sockets | |
enable ( ) : void | Enable socket events | |
finish ( ) : void | Finishes Generic | |
getPort ( ) : string | null | Get port | |
getUri ( ) : string | Get URI | |
netMatch ( $CIDR, $IP ) : boolean | Checks if the CIDR-mask matches the IP | |
onAcceptEv ( EventListener $listener, $fd, $addrPort, $ctx ) | ||
setFd ( string $fd ) : void | Route incoming request to related application |
메소드 | 설명 | |
---|---|---|
importParams ( ) : void | Import parameters | |
initSecureContext ( ) : void | Initialize SSL/TLS context | |
onBound ( ) : boolean | null | Called when socket is bound |
abstract public bindSocket ( ) : boolean | ||
리턴 | boolean | Success. |
protected initSecureContext ( ) : void | ||
리턴 | void |
public onAcceptEv ( EventListener $listener, $fd, $addrPort, $ctx ) | ||
$listener | EventListener | |
$fd | ||
$addrPort | ||
$ctx |