aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http.h')
-rw-r--r--src/transport/plugin_transport_http.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h
index 94952173c..1e32cbf42 100644
--- a/src/transport/plugin_transport_http.h
+++ b/src/transport/plugin_transport_http.h
@@ -80,12 +80,12 @@ struct Plugin
80 /** 80 /**
81 * Head of linked list of open sessions. 81 * Head of linked list of open sessions.
82 */ 82 */
83 struct Session *head; 83 struct GNUNET_ATS_Session *head;
84 84
85 /** 85 /**
86 * Tail of linked list of open sessions. 86 * Tail of linked list of open sessions.
87 */ 87 */
88 struct Session *tail; 88 struct GNUNET_ATS_Session *tail;
89 89
90 /** 90 /**
91 * NAT handle & address management 91 * NAT handle & address management
@@ -247,14 +247,14 @@ struct Plugin
247 * A full session consists of 2 semi-connections: send and receive 247 * A full session consists of 2 semi-connections: send and receive
248 * If not both directions are established the server keeps this sessions here 248 * If not both directions are established the server keeps this sessions here
249 */ 249 */
250 struct Session *server_semi_head; 250 struct GNUNET_ATS_Session *server_semi_head;
251 251
252 /** 252 /**
253 * Tail of server semi connections 253 * Tail of server semi connections
254 * A full session consists of 2 semi-connections: send and receive 254 * A full session consists of 2 semi-connections: send and receive
255 * If not both directions are established the server keeps this sessions here 255 * If not both directions are established the server keeps this sessions here
256 */ 256 */
257 struct Session *server_semi_tail; 257 struct GNUNET_ATS_Session *server_semi_tail;
258 258
259 /** 259 /**
260 * cURL Multihandle 260 * cURL Multihandle
@@ -335,7 +335,7 @@ struct ServerRequest
335 /** 335 /**
336 * The session this server connection belongs to 336 * The session this server connection belongs to
337 */ 337 */
338 struct Session *session; 338 struct GNUNET_ATS_Session *session;
339 339
340 /** 340 /**
341 * The MHD connection 341 * The MHD connection
@@ -347,7 +347,7 @@ struct ServerRequest
347/** 347/**
348 * Session handle for connections. 348 * Session handle for connections.
349 */ 349 */
350struct Session 350struct GNUNET_ATS_Session
351{ 351{
352 /** 352 /**
353 * To whom are we talking to 353 * To whom are we talking to
@@ -357,12 +357,12 @@ struct Session
357 /** 357 /**
358 * Stored in a linked list. 358 * Stored in a linked list.
359 */ 359 */
360 struct Session *next; 360 struct GNUNET_ATS_Session *next;
361 361
362 /** 362 /**
363 * Stored in a linked list. 363 * Stored in a linked list.
364 */ 364 */
365 struct Session *prev; 365 struct GNUNET_ATS_Session *prev;
366 366
367 /** 367 /**
368 * Pointer to the global plugin struct. 368 * Pointer to the global plugin struct.
@@ -499,7 +499,7 @@ struct HTTP_Message
499}; 499};
500 500
501 501
502struct Session * 502struct GNUNET_ATS_Session *
503create_session (struct Plugin *plugin, 503create_session (struct Plugin *plugin,
504 const struct GNUNET_PeerIdentity *target, 504 const struct GNUNET_PeerIdentity *target,
505 const void *addr, 505 const void *addr,
@@ -508,23 +508,23 @@ create_session (struct Plugin *plugin,
508 508
509int 509int
510exist_session (struct Plugin *plugin, 510exist_session (struct Plugin *plugin,
511 struct Session *s); 511 struct GNUNET_ATS_Session *s);
512 512
513 513
514void 514void
515delete_session (struct Session *s); 515delete_session (struct GNUNET_ATS_Session *s);
516 516
517 517
518int 518int
519exist_session (struct Plugin *plugin, 519exist_session (struct Plugin *plugin,
520 struct Session *s); 520 struct GNUNET_ATS_Session *s);
521 521
522 522
523struct GNUNET_TIME_Relative 523struct GNUNET_TIME_Relative
524http_plugin_receive (void *cls, 524http_plugin_receive (void *cls,
525 const struct GNUNET_PeerIdentity *peer, 525 const struct GNUNET_PeerIdentity *peer,
526 const struct GNUNET_MessageHeader *message, 526 const struct GNUNET_MessageHeader *message,
527 struct Session *session, 527 struct GNUNET_ATS_Session *session,
528 const char *sender_address, 528 const char *sender_address,
529 uint16_t sender_address_len); 529 uint16_t sender_address_len);
530 530
@@ -536,15 +536,15 @@ http_plugin_address_to_string (void *cls,
536 536
537 537
538int 538int
539client_disconnect (struct Session *s); 539client_disconnect (struct GNUNET_ATS_Session *s);
540 540
541 541
542int 542int
543client_connect (struct Session *s); 543client_connect (struct GNUNET_ATS_Session *s);
544 544
545 545
546int 546int
547client_send (struct Session *s, struct HTTP_Message *msg); 547client_send (struct GNUNET_ATS_Session *s, struct HTTP_Message *msg);
548 548
549 549
550int 550int
@@ -556,11 +556,11 @@ client_stop (struct Plugin *plugin);
556 556
557 557
558int 558int
559server_disconnect (struct Session *s); 559server_disconnect (struct GNUNET_ATS_Session *s);
560 560
561 561
562int 562int
563server_send (struct Session *s, struct HTTP_Message *msg); 563server_send (struct GNUNET_ATS_Session *s, struct HTTP_Message *msg);
564 564
565 565
566int 566int
@@ -574,7 +574,7 @@ server_stop (struct Plugin *plugin);
574void 574void
575notify_session_end (void *cls, 575notify_session_end (void *cls,
576 const struct GNUNET_PeerIdentity *peer, 576 const struct GNUNET_PeerIdentity *peer,
577 struct Session *s); 577 struct GNUNET_ATS_Session *s);
578 578
579 579
580/*#ifndef PLUGIN_TRANSPORT_HTTP_H*/ 580/*#ifndef PLUGIN_TRANSPORT_HTTP_H*/