#endif
#include "gnunet_common.h"
-#include "gnunet_network_lib.h"
+#include "gnunet_connection_lib.h"
#include "gnunet_scheduler_lib.h"
struct GNUNET_SERVER_Handle *GNUNET_SERVER_create (struct
GNUNET_SCHEDULER_Handle
*sched,
- GNUNET_NETWORK_AccessCheck
+ GNUNET_CONNECTION_AccessCheck
access, void *access_cls,
const struct sockaddr
*serverAddr,
* @param callback_cls closure for callback
* @return non-NULL if the notify callback was queued; can be used
* to cancel the request using
- * GNUNET_NETWORK_notify_transmit_ready_cancel.
+ * GNUNET_CONNECTION_notify_transmit_ready_cancel.
* NULL if we are already going to notify someone else (busy)
*/
-struct GNUNET_NETWORK_TransmitHandle
+struct GNUNET_CONNECTION_TransmitHandle
*GNUNET_SERVER_notify_transmit_ready (struct GNUNET_SERVER_Client *client,
size_t size,
struct GNUNET_TIME_Relative timeout,
- GNUNET_NETWORK_TransmitReadyNotify
+ GNUNET_CONNECTION_TransmitReadyNotify
callback, void *callback_cls);
GNUNET_SERVER_Handle
*server,
struct
- GNUNET_NETWORK_SocketHandle
+ GNUNET_CONNECTION_Handle
*connection);
(*GNUNET_SERVER_ReceiveCallback) (void *cls,
size_t max,
struct GNUNET_TIME_Relative timeout,
- GNUNET_NETWORK_Receiver
+ GNUNET_CONNECTION_Receiver
receiver, void *receiver_cls);
struct
GNUNET_TIME_Relative
timeout,
- GNUNET_NETWORK_TransmitReadyNotify
+ GNUNET_CONNECTION_TransmitReadyNotify
notify,
void *notify_cls);