aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-02-18 15:07:02 +0000
committerChristian Grothoff <christian@grothoff.org>2010-02-18 15:07:02 +0000
commitd720cc786723169cfdbb246ad6f1f584581f589d (patch)
tree2b2dad9c9a0d4d2d01545cac7f9f11993984884c /src/transport/plugin_transport_udp.c
parent0e421fd4f11c564dba39d9c533aed642560c7655 (diff)
downloadgnunet-d720cc786723169cfdbb246ad6f1f584581f589d.tar.gz
gnunet-d720cc786723169cfdbb246ad6f1f584581f589d.zip
fixing doxygen warnings
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 94222bd6d..be8e2848c 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -75,8 +75,6 @@ struct UDPMessage
75 75
76}; 76};
77 77
78/* Forward definition */
79struct Plugin;
80 78
81struct PrettyPrinterContext 79struct PrettyPrinterContext
82{ 80{
@@ -111,6 +109,11 @@ struct Plugin
111 struct GNUNET_RESOLVER_RequestHandle *hostname_dns; 109 struct GNUNET_RESOLVER_RequestHandle *hostname_dns;
112 110
113 /** 111 /**
112 * FD Read set
113 */
114 struct GNUNET_NETWORK_FDSet *rs;
115
116 /**
114 * ID of task used to update our addresses when one expires. 117 * ID of task used to update our addresses when one expires.
115 */ 118 */
116 GNUNET_SCHEDULER_TaskIdentifier address_update_task; 119 GNUNET_SCHEDULER_TaskIdentifier address_update_task;
@@ -131,11 +134,6 @@ struct Plugin
131 */ 134 */
132 uint16_t adv_port; 135 uint16_t adv_port;
133 136
134 /*
135 * FD Read set
136 */
137 struct GNUNET_NETWORK_FDSet *rs;
138
139}; 137};
140 138
141/* *********** globals ************* */ 139/* *********** globals ************* */
@@ -148,13 +146,14 @@ static struct GNUNET_NETWORK_Handle *udp_sock;
148/** 146/**
149 * Disconnect from a remote node. 147 * Disconnect from a remote node.
150 * 148 *
151 * @param tsession the session that is closed 149 * @param cls closure ('struct Plugin'), unused
150 * @param target peer do disconnect
152 * @return GNUNET_OK on success, GNUNET_SYSERR if the operation failed 151 * @return GNUNET_OK on success, GNUNET_SYSERR if the operation failed
153 */ 152 */
154void 153void
155udp_disconnect (void *cls, const struct GNUNET_PeerIdentity *target) 154udp_disconnect (void *cls, const struct GNUNET_PeerIdentity *target)
156{ 155{
157 return; 156 /* nothing to do, UDP is stateless */
158} 157}
159 158
160/** 159/**
@@ -187,7 +186,7 @@ udp_transport_server_stop (void *cls)
187 * @param cls closure 186 * @param cls closure
188 * @param target who should receive this message (ignored by UDP) 187 * @param target who should receive this message (ignored by UDP)
189 * @param msgbuf one or more GNUNET_MessageHeader(s) strung together 188 * @param msgbuf one or more GNUNET_MessageHeader(s) strung together
190 * @param msgbufsize the size of the msgbuf to send 189 * @param msgbuf_size the size of the msgbuf to send
191 * @param priority how important is the message (ignored by UDP) 190 * @param priority how important is the message (ignored by UDP)
192 * @param timeout when should we time out (give up) if we can not transmit? 191 * @param timeout when should we time out (give up) if we can not transmit?
193 * @param addr the addr to send the message to, needs to be a sockaddr for us 192 * @param addr the addr to send the message to, needs to be a sockaddr for us