3 /* tcp trp (transport) - send/receive a bunch of bytes from a tcp socket */
5 /* Authors: Martin Quinson */
6 /* Copyright (C) 2004 Martin Quinson. */
8 /* This program is free software; you can redistribute it and/or modify it
9 under the terms of the license (GNU LGPL) which comes with this package. */
11 #include "gras_private.h"
12 #include "transport_private.h"
14 GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(trp_tcp,transport);
18 } gras_trp_tcp_specific_t;
21 gras_trp_tcp_init(void) {
23 gras_trp_tcp_specific_t *specific = malloc(sizeof(gras_trp_tcp_specific_t));
31 gras_trp_tcp_exit(gras_trp_plugin_t *plugin) {
32 gras_trp_tcp_specific_t *specific = (gras_trp_tcp_specific_t*)plugin->specific;
36 gras_error_t gras_trp_tcp_socket_client(const char *host,
40 /* OUT */ gras_trp_sock_t **dst){
44 gras_error_t gras_trp_tcp_socket_server(unsigned short port,
47 /* OUT */ gras_trp_sock_t **dst){
51 void gras_trp_tcp_socket_close(gras_trp_sock_t **sd){
52 ERROR1("%s not implemented",__FUNCTION__);
56 gras_error_t gras_trp_tcp_select(double timeOut,
57 gras_trp_sock_t **sd){
61 gras_error_t gras_trp_tcp_bloc_send(gras_trp_sock_t *sd,
68 gras_error_t gras_trp_tcp_bloc_recv(gras_trp_sock_t *sd,
75 gras_error_t gras_trp_tcp_flush(gras_trp_sock_t *sd){