3 /* file trp (transport) - send/receive a bunch of bytes in SG realm */
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_EXTERNAL_CATEGORY(transport);
15 GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(trp_sg,transport);
19 } gras_trp_sg_specific_t;
22 gras_trp_sg_init(void) {
24 gras_trp_sg_specific_t *specific = malloc(sizeof(gras_trp_sg_specific_t));
32 gras_trp_sg_exit(gras_trp_plugin_t *plugin) {
33 gras_trp_sg_specific_t *specific = (gras_trp_sg_specific_t*)plugin->specific;
37 gras_error_t gras_trp_sg_socket_client(const char *host,
41 /* OUT */ gras_trp_sock_t **dst){
45 gras_error_t gras_trp_sg_socket_server(unsigned short port,
48 /* OUT */ gras_trp_sock_t **dst){
52 void gras_trp_sg_socket_close(gras_trp_sock_t **sd){
53 ERROR1("%s not implemented",__FUNCTION__);
57 gras_error_t gras_trp_sg_select(double timeOut,
58 gras_trp_sock_t **sd){
62 gras_error_t gras_trp_sg_bloc_send(gras_trp_sock_t *sd,
69 gras_error_t gras_trp_sg_bloc_recv(gras_trp_sock_t *sd,
76 gras_error_t gras_trp_sg_flush(gras_trp_sock_t *sd){