diff options
Diffstat (limited to 'src/transport/plugin_transport_smtp.c')
-rw-r--r-- | src/transport/plugin_transport_smtp.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_smtp.c b/src/transport/plugin_transport_smtp.c index 7fbbc9126..330023118 100644 --- a/src/transport/plugin_transport_smtp.c +++ b/src/transport/plugin_transport_smtp.c | |||
@@ -257,6 +257,7 @@ END: | |||
257 | return NULL; | 257 | return NULL; |
258 | } | 258 | } |
259 | 259 | ||
260 | |||
260 | /* *************** API implementation *************** */ | 261 | /* *************** API implementation *************** */ |
261 | 262 | ||
262 | /** | 263 | /** |
@@ -287,6 +288,7 @@ api_verify_hello (const GNUNET_MessageHello *hello) | |||
287 | return GNUNET_OK; | 288 | return GNUNET_OK; |
288 | } | 289 | } |
289 | 290 | ||
291 | |||
290 | /** | 292 | /** |
291 | * Create a hello-Message for the current node. The hello is created | 293 | * Create a hello-Message for the current node. The hello is created |
292 | * without signature and without a timestamp. The GNUnet core will | 294 | * without signature and without a timestamp. The GNUnet core will |
@@ -336,6 +338,7 @@ api_create_hello () | |||
336 | return msg; | 338 | return msg; |
337 | } | 339 | } |
338 | 340 | ||
341 | |||
339 | struct GetMessageClosure | 342 | struct GetMessageClosure |
340 | { | 343 | { |
341 | unsigned int esize; | 344 | unsigned int esize; |
@@ -361,6 +364,7 @@ get_message (void **buf, int *len, void *cls) | |||
361 | return gmc->ebody; | 364 | return gmc->ebody; |
362 | } | 365 | } |
363 | 366 | ||
367 | |||
364 | /** | 368 | /** |
365 | * Send a message to the specified remote node. | 369 | * Send a message to the specified remote node. |
366 | * | 370 | * |
@@ -529,6 +533,7 @@ api_send (GNUNET_TSession *tsession, const void *msg, const unsigned int size, | |||
529 | return GNUNET_OK; | 533 | return GNUNET_OK; |
530 | } | 534 | } |
531 | 535 | ||
536 | |||
532 | /** | 537 | /** |
533 | * Establish a connection to a remote node. | 538 | * Establish a connection to a remote node. |
534 | * @param hello the hello-Message for the target node | 539 | * @param hello the hello-Message for the target node |
@@ -551,6 +556,7 @@ api_connect (const GNUNET_MessageHello *hello, GNUNET_TSession **tsessionPtr, | |||
551 | return GNUNET_OK; | 556 | return GNUNET_OK; |
552 | } | 557 | } |
553 | 558 | ||
559 | |||
554 | /** | 560 | /** |
555 | * Disconnect from a remote node. | 561 | * Disconnect from a remote node. |
556 | * | 562 | * |
@@ -569,6 +575,7 @@ api_disconnect (GNUNET_TSession *tsession) | |||
569 | return GNUNET_OK; | 575 | return GNUNET_OK; |
570 | } | 576 | } |
571 | 577 | ||
578 | |||
572 | /** | 579 | /** |
573 | * Start the server process to receive inbound traffic. | 580 | * Start the server process to receive inbound traffic. |
574 | * @return GNUNET_OK on success, GNUNET_SYSERR if the operation failed | 581 | * @return GNUNET_OK on success, GNUNET_SYSERR if the operation failed |
@@ -589,6 +596,7 @@ api_start_transport_server () | |||
589 | return GNUNET_OK; | 596 | return GNUNET_OK; |
590 | } | 597 | } |
591 | 598 | ||
599 | |||
592 | /** | 600 | /** |
593 | * Shutdown the server process (stop receiving inbound traffic). Maybe | 601 | * Shutdown the server process (stop receiving inbound traffic). Maybe |
594 | * restarted later! | 602 | * restarted later! |
@@ -604,6 +612,7 @@ api_stop_transport_server () | |||
604 | return GNUNET_OK; | 612 | return GNUNET_OK; |
605 | } | 613 | } |
606 | 614 | ||
615 | |||
607 | /** | 616 | /** |
608 | * Convert SMTP hello to an IP address (always fails). | 617 | * Convert SMTP hello to an IP address (always fails). |
609 | */ | 618 | */ |
@@ -614,6 +623,7 @@ api_hello_to_address (const GNUNET_MessageHello *hello, void **sa, | |||
614 | return GNUNET_SYSERR; | 623 | return GNUNET_SYSERR; |
615 | } | 624 | } |
616 | 625 | ||
626 | |||
617 | /** | 627 | /** |
618 | * Always fails. | 628 | * Always fails. |
619 | */ | 629 | */ |
@@ -623,6 +633,7 @@ api_associate (GNUNET_TSession *tsession) | |||
623 | return GNUNET_SYSERR; /* SMTP connections can never be associated */ | 633 | return GNUNET_SYSERR; /* SMTP connections can never be associated */ |
624 | } | 634 | } |
625 | 635 | ||
636 | |||
626 | /** | 637 | /** |
627 | * Always succeeds (for now; we should look at adding | 638 | * Always succeeds (for now; we should look at adding |
628 | * frequency limits to SMTP in the future!). | 639 | * frequency limits to SMTP in the future!). |
@@ -634,6 +645,7 @@ api_test_would_try (GNUNET_TSession *tsession, unsigned int size, | |||
634 | return GNUNET_OK; /* we always try... */ | 645 | return GNUNET_OK; /* we always try... */ |
635 | } | 646 | } |
636 | 647 | ||
648 | |||
637 | /** | 649 | /** |
638 | * The exported method. Makes the core api available via a global and | 650 | * The exported method. Makes the core api available via a global and |
639 | * returns the smtp transport API. | 651 | * returns the smtp transport API. |
@@ -714,6 +726,7 @@ inittransport_smtp (struct GNUNET_CoreAPIForTransport *core) | |||
714 | return &smtpAPI; | 726 | return &smtpAPI; |
715 | } | 727 | } |
716 | 728 | ||
729 | |||
717 | void | 730 | void |
718 | donetransport_smtp () | 731 | donetransport_smtp () |
719 | { | 732 | { |
@@ -733,4 +746,5 @@ donetransport_smtp () | |||
733 | email = NULL; | 746 | email = NULL; |
734 | } | 747 | } |
735 | 748 | ||
749 | |||
736 | /* end of smtp.c */ | 750 | /* end of smtp.c */ |