~ubuntu-branches/ubuntu/jaunty/xorp/jaunty

« back to all changes in this revision

Viewing changes to fea/io_tcpudp_manager.hh

  • Committer: Bazaar Package Importer
  • Author(s): Jose Calhariz, Javier Fernandez-Sanguino, Jose Calhariz
  • Date: 2008-01-23 01:24:37 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080123012437-7l2u9r0k8e7op8st
Tags: 1.5~cvs.20080128-1
[ Javier Fernandez-Sanguino ]
* Update to latest CVS contents
* Modify debian/rules to prevent autobuilders from building 
  the binary-independent components: (Closes: #441121)
  - Create a new Build-Depends-Indep with all the TeX
  components used to build documentation
  - Since autobuilders call build, which in turns calls build-indep, hack
    the debian rules file so that the documentation is only built if ps2pdf,
    dvips and pslatex are available. 
* Modify the init.d script:
  - restart action: Do not attempt to stop xorp if not running
  - stop function: fix errors in the script
  - add a try-restart action
  - restructure the init.d script, move the restart code to a function
  - review the use of echo calls and exit values
* Use, as examples, the new boot files at rtrmgr/config/

[ Jose Calhariz ]
* Add depends on ncurses-dev, I don't know why xorp use tigetstr
  function from curses.  This way the depends field change less between
  build environments.
* Removed pushd and popd commands from Makefile and replaced with cd
  commands, was a bashism and FTBFS (closes: #453637)
* debian/control converted to utf-8 (closes: #454026) (closes: #453485)
* init.d/xorp now returns 0 if disabled.
* Added Vcs-Browser and Vcs-Svn fields pointing to the repository of the
  package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-
2
2
 
3
 
// Copyright (c) 2007 International Computer Science Institute
 
3
// Copyright (c) 2007-2008 International Computer Science Institute
4
4
//
5
5
// Permission is hereby granted, free of charge, to any person obtaining a
6
6
// copy of this software and associated documentation files (the "Software")
12
12
// notice is a summary of the XORP LICENSE file; the license in that file is
13
13
// legally binding.
14
14
 
15
 
// $XORP: xorp/fea/io_tcpudp_manager.hh,v 1.6 2007/08/21 00:10:36 pavlin Exp $
 
15
// $XORP: xorp/fea/io_tcpudp_manager.hh,v 1.9 2008/01/04 03:15:47 pavlin Exp $
16
16
 
17
17
#ifndef __FEA_IO_TCPUDP_MANAGER_HH__
18
18
#define __FEA_IO_TCPUDP_MANAGER_HH__
107
107
     * Constructor for IoTcpUdpComm.
108
108
     *
109
109
     * @param io_tcpudp_manager the corresponding I/O TCP/UDP manager
110
 
     * (@see IoTcpUdpManager).
 
110
     * (@ref IoTcpUdpManager).
111
111
     * @param iftree the interface tree to use.
112
112
     * @param family the address family (AF_INET or AF_INET6 for IPv4 and IPv6
113
113
     * respectively).
121
121
     * Constructor for connected IoTcpUdpComm.
122
122
     *
123
123
     * @param io_tcpudp_manager the corresponding I/O TCP/UDP manager
124
 
     * (@see IoTcpUdpManager).
 
124
     * (@ref IoTcpUdpManager).
125
125
     * @param iftree the interface tree to use.
126
126
     * @param family the address family (AF_INET or AF_INET6 for IPv4 and IPv6
127
127
     * respectively).
398
398
    /**
399
399
     * Data received event.
400
400
     *
 
401
     * @param if_name the interface name the packet arrived on, if known.
 
402
     * If unknown, then it is an empty string.
 
403
     * @param vif_name the vif name the packet arrived on, if known.
 
404
     * If unknown, then it is an empty string.
401
405
     * @param src_host the originating host IP address.
402
406
     * @param src_port the originating host port number.
403
407
     * @param data the data received.
404
408
     */
405
 
    void recv_event(const IPvX&                 src_host,
 
409
    void recv_event(const string&               if_name,
 
410
                    const string&               vif_name,
 
411
                    const IPvX&                 src_host,
406
412
                    uint16_t                    src_port,
407
413
                    const vector<uint8_t>&      data);
408
414
 
519
525
     *
520
526
     * @param receiver_name the name of the receiver to send the data to.
521
527
     * @param sockid unique socket ID.
 
528
     * @param if_name the interface name the packet arrived on, if known.
 
529
     * If unknown, then it is an empty string.
 
530
     * @param vif_name the vif name the packet arrived on, if known.
 
531
     * If unknown, then it is an empty string.
522
532
     * @param src_host the originating host IP address.
523
533
     * @param src_port the originating host port number.
524
534
     * @param data the data received.
525
535
     */
526
536
    virtual void recv_event(const string&               receiver_name,
527
537
                            const string&               sockid,
 
538
                            const string&               if_name,
 
539
                            const string&               vif_name,
528
540
                            const IPvX&                 src_host,
529
541
                            uint16_t                    src_port,
530
542
                            const vector<uint8_t>&      data) = 0;
889
901
     *
890
902
     * @param receiver_name the name of the receiver to send the data to.
891
903
     * @param sockid unique socket ID.
 
904
     * @param if_name the interface name the packet arrived on, if known.
 
905
     * If unknown, then it is an empty string.
 
906
     * @param vif_name the vif name the packet arrived on, if known.
 
907
     * If unknown, then it is an empty string.
892
908
     * @param src_host the originating host IP address.
893
909
     * @param src_port the originating host port number.
894
910
     * @param data the data received.
895
911
     */
896
912
    void recv_event(const string&               receiver_name,
897
913
                    const string&               sockid,
 
914
                    const string&               if_name,
 
915
                    const string&               vif_name,
898
916
                    const IPvX&                 src_host,
899
917
                    uint16_t                    src_port,
900
918
                    const vector<uint8_t>&      data);
988
1006
    /**
989
1007
     * Get a reference to the interface tree.
990
1008
     *
991
 
     * @return a reference to the interface tree (@see IfTree).
 
1009
     * @return a reference to the interface tree (@ref IfTree).
992
1010
     */
993
1011
    const IfTree&       iftree() const { return _iftree; }
994
1012
 
1030
1048
     * @param peer_host the peer host IP address.
1031
1049
     * @param peer_port the peer host port number.
1032
1050
     * @param new_io_tcpudp the handler for the new connection.
1033
 
     * @return an entry (@see IoTcpUdpComm) to handle the connection
 
1051
     * @return an entry (@ref IoTcpUdpComm) to handle the connection
1034
1052
     * from the new plugin.
1035
1053
     */
1036
1054
    IoTcpUdpComm* connect_io_tcpudp_comm(int family,