20 write(
const char *buff,
size_t len) {
22 return this->w->
write(this->w, buff, len);
27 read(
char *buff,
size_t len) {
29 int ret, timedout = 0;
31 ret = this->w->
read(this->w, buff, len, &timedout);
32 if (ret == 0 && timedout)
41 this->w->
close(this->w);
int(* write)(struct fasp_stream_socket_wrapper *w, const char *buff, int len)
Definition: fasp_stream_channel.h:62
Definition: fasp_stream_channel.h:39
Definition: FaspConnectionChannel.h:33
Definition: FaspConnectionChannel.h:77
void(* close)(struct fasp_stream_socket_wrapper *w)
Definition: fasp_stream_channel.h:68
int write(const char *buff, size_t len)
Definition: FaspSocketChannel.h:20
Definition: FaspSocketChannel.h:14
int read(char *buff, size_t len)
Definition: FaspSocketChannel.h:27
int(* read)(struct fasp_stream_socket_wrapper *w, char *buff, int len, int *timedout)
Definition: fasp_stream_channel.h:55
void close()
Definition: FaspSocketChannel.h:39
FaspSocketChannel(fasp_stream_socket_wrapper_t *w)
Definition: FaspSocketChannel.h:17