#include <pbl.h>
Go to the source code of this file.
|
ksnTcpClass * | ksnTcpInit (void *ke) |
|
void | ksnTcpDestroy (ksnTcpClass *kt) |
|
struct ev_io * | ksnTcpCb (struct ev_loop *loop, ev_ksnet_io *w, int fd, void(*ksnet_read_cb)(struct ev_loop *loop, ev_io *watcher, int revents), void *data) |
|
void | ksnTcpCbStop (struct ev_loop *loop, ev_io *watcher, int close_flg, int remove_flg) |
|
int | ksnTcpServerCreate (ksnTcpClass *kt, int port, void(*ksnet_cb)(struct ev_loop *loop, struct ev_ksnet_io *watcher, int revents, int fd), void *data, int *port_created) |
|
void | ksnTcpServerStop (ksnTcpClass *kt, int sd) |
|
void | ksnTcpServerStopAll (ksnTcpClass *kt) |
|
void | ksnTcpServerStopAllClients (ksnTcpClass *kt, int sd) |
|
int | ksnTcpGetServer (ksnTcpClass *kt, int sd) |
|
int | ksnTcpClientCreate (ksnTcpClass *kt, int port, const char *server) |
|
File: net_tcp.h Author: Kirill Scherba.
Created on March 29, 2015, 6:43 PM Updated to use in libksmesh on May 06, 2015, 21:55 Adapted to use in libteonet on July 24, 2015, 11:56 TCP Class data
struct ev_io* ksnTcpCb |
( |
struct ev_loop * |
loop, |
|
|
ev_ksnet_io * |
w, |
|
|
int |
fd, |
|
|
void(*)(struct ev_loop *loop, ev_io *watcher, int revents) |
ksnet_read_cb, |
|
|
void * |
data |
|
) |
| |
void ksnTcpCbStop |
( |
struct ev_loop * |
loop, |
|
|
ev_io * |
watcher, |
|
|
int |
close_flg, |
|
|
int |
remove_flg |
|
) |
| |
int ksnTcpClientCreate |
( |
ksnTcpClass * |
kt, |
|
|
int |
port, |
|
|
const char * |
server |
|
) |
| |
int ksnTcpServerCreate |
( |
ksnTcpClass * |
kt, |
|
|
int |
port, |
|
|
void(*)(struct ev_loop *loop, struct ev_ksnet_io *watcher, int revents, int fd) |
ksnet_cb, |
|
|
void * |
data, |
|
|
int * |
port_created |
|
) |
| |
void ksnTcpServerStopAllClients |
( |
ksnTcpClass * |
kt, |
|
|
int |
sd |
|
) |
| |