The Swoole\Client class

(PECL swoole >= 1.9.0)

Introduction

Class synopsis

classSwoole\Client {
constintMSG_OOB = 1;
constintMSG_PEEK = 2;
constintMSG_DONTWAIT = 128;
constintMSG_WAITALL = 64;
public$errCode;
public$sock;
public$reuse;
publicclose(bool$force = ?): bool
publicconnect(
    string$host,
    int$port = ?,
    int$timeout = ?,
    int$flag = ?
): bool
public__destruct(): void
publicisConnected(): bool
publicon(string$event, callable$callback): void
publicpause(): void
publicpipe(string$socket): void
publicrecv(string$size = ?, string$flag = ?): void
publicresume(): void
publicsend(string$data, string$flag = ?): int
publicsendfile(string$filename, int$offset = ?): bool
publicsendto(string$ip, int$port, string$data): bool
publicset(array$settings): void
publicsleep(): void
publicwakeup(): void
}

Properties

errCode

sock

reuse

reuseCount

Table of Contents

To Top