View | Details | Raw Unified | Return to bug 2474
Collapse All | Expand All

(-)a/src/applications/helper/udp-client-server-helper.h (+8 lines)
 Lines 125-130   public: Link Here 
125
   *
125
   *
126
   * \param ip The IP address of the remote UDP server
126
   * \param ip The IP address of the remote UDP server
127
   * \param port The port number of the remote UDP server
127
   * \param port The port number of the remote UDP server
128
   * \deprecated The non-const uint16_t argument is deprecated and will be
129
   * removed in a future release. Currently, if the provided address is of
130
   * type InetSocketAddress or Inet6SocketAddress, this argument is ignored
131
   * because it can be specified within the address.
128
   */
132
   */
129
133
130
  UdpClientHelper (Address ip, uint16_t port);
134
  UdpClientHelper (Address ip, uint16_t port);
 Lines 178-183   public: Link Here 
178
   * \param ip The IP address of the remote UDP server
182
   * \param ip The IP address of the remote UDP server
179
   * \param port The port number of the remote UDP server
183
   * \param port The port number of the remote UDP server
180
   * \param filename the file from which packet traces will be loaded
184
   * \param filename the file from which packet traces will be loaded
185
   * \deprecated The non-const uint16_t argument is deprecated and will be
186
   * removed in a future release. Currently, if the provided address is of
187
   * type InetSocketAddress or Inet6SocketAddress, this argument is ignored
188
   * because it can be specified within the address.
181
   */
189
   */
182
  UdpTraceClientHelper (Address ip, uint16_t port, std::string filename);
190
  UdpTraceClientHelper (Address ip, uint16_t port, std::string filename);
183
  /**
191
  /**
(-)a/src/applications/helper/udp-echo-helper.h (+4 lines)
 Lines 112-117   public: Link Here 
112
   *
112
   *
113
   * \param ip The IP address of the remote udp echo server
113
   * \param ip The IP address of the remote udp echo server
114
   * \param port The port number of the remote udp echo server
114
   * \param port The port number of the remote udp echo server
115
   * \deprecated The non-const uint16_t argument is deprecated and will be
116
   * removed in a future release. Currently, if the provided address is of
117
   * type InetSocketAddress or Inet6SocketAddress, this argument is ignored
118
   * because it can be specified within the address.
115
   */
119
   */
116
  UdpEchoClientHelper (Address ip, uint16_t port);
120
  UdpEchoClientHelper (Address ip, uint16_t port);
117
  /**
121
  /**
(-)a/src/applications/model/udp-client.cc (+10 lines)
 Lines 136-141   UdpClient::StartApplication (void) Link Here 
136
          m_socket->Bind6 ();
136
          m_socket->Bind6 ();
137
          m_socket->Connect (Inet6SocketAddress (Ipv6Address::ConvertFrom(m_peerAddress), m_peerPort));
137
          m_socket->Connect (Inet6SocketAddress (Ipv6Address::ConvertFrom(m_peerAddress), m_peerPort));
138
        }
138
        }
139
      else if (InetSocketAddress::IsMatchingType (m_peerAddress) == true)
140
        {
141
          m_socket->Bind ();
142
          m_socket->Connect (m_peerAddress);
143
        }
144
      else if (Inet6SocketAddress::IsMatchingType (m_peerAddress) == true)
145
        {
146
          m_socket->Bind6 ();
147
          m_socket->Connect (m_peerAddress);
148
        }
139
    }
149
    }
140
150
141
  m_socket->SetRecvCallback (MakeNullCallback<void, Ptr<Socket> > ());
151
  m_socket->SetRecvCallback (MakeNullCallback<void, Ptr<Socket> > ());
(-)a/src/applications/model/udp-client.h (+4 lines)
 Lines 69-74   public: Link Here 
69
   * \brief set the remote address and port
69
   * \brief set the remote address and port
70
   * \param ip remote IP address
70
   * \param ip remote IP address
71
   * \param port remote port
71
   * \param port remote port
72
   * \deprecated The non-const uint16_t argument is deprecated and will be
73
   * removed in a future release. Currently, if the provided address is of
74
   * type InetSocketAddress or Inet6SocketAddress, this argument is ignored
75
   * because it can be specified within the address.
72
   */
76
   */
73
  void SetRemote (Address ip, uint16_t port);
77
  void SetRemote (Address ip, uint16_t port);
74
78
(-)a/src/applications/model/udp-echo-client.cc (+10 lines)
 Lines 144-149   UdpEchoClient::StartApplication (void) Link Here 
144
          m_socket->Bind6();
144
          m_socket->Bind6();
145
          m_socket->Connect (Inet6SocketAddress (Ipv6Address::ConvertFrom(m_peerAddress), m_peerPort));
145
          m_socket->Connect (Inet6SocketAddress (Ipv6Address::ConvertFrom(m_peerAddress), m_peerPort));
146
        }
146
        }
147
      else if (InetSocketAddress::IsMatchingType (m_peerAddress) == true)
148
        {
149
          m_socket->Bind ();
150
          m_socket->Connect (m_peerAddress);
151
        }
152
      else if (Inet6SocketAddress::IsMatchingType (m_peerAddress) == true)
153
        {
154
          m_socket->Bind6 ();
155
          m_socket->Connect (m_peerAddress);
156
        }
147
    }
157
    }
148
158
149
  m_socket->SetRecvCallback (MakeCallback (&UdpEchoClient::HandleRead, this));
159
  m_socket->SetRecvCallback (MakeCallback (&UdpEchoClient::HandleRead, this));
(-)a/src/applications/model/udp-echo-client.h (+4 lines)
 Lines 65-70   public: Link Here 
65
   * \brief set the remote address and port
65
   * \brief set the remote address and port
66
   * \param ip remote IP address
66
   * \param ip remote IP address
67
   * \param port remote port
67
   * \param port remote port
68
   * \deprecated The non-const uint16_t argument is deprecated and will be
69
   * removed in a future release. Currently, if the provided address is of
70
   * type InetSocketAddress or Inet6SocketAddress, this argument is ignored
71
   * because it can be specified within the address.
68
   */
72
   */
69
  void SetRemote (Address ip, uint16_t port);
73
  void SetRemote (Address ip, uint16_t port);
70
74
(-)a/src/applications/model/udp-trace-client.cc (+10 lines)
 Lines 260-265   UdpTraceClient::StartApplication (void) Link Here 
260
          m_socket->Bind6 ();
260
          m_socket->Bind6 ();
261
          m_socket->Connect (Inet6SocketAddress (Ipv6Address::ConvertFrom (m_peerAddress), m_peerPort));
261
          m_socket->Connect (Inet6SocketAddress (Ipv6Address::ConvertFrom (m_peerAddress), m_peerPort));
262
        }
262
        }
263
      else if (InetSocketAddress::IsMatchingType (m_peerAddress) == true)
264
        {
265
          m_socket->Bind ();
266
          m_socket->Connect (m_peerAddress);
267
        }
268
      else if (Inet6SocketAddress::IsMatchingType (m_peerAddress) == true)
269
        {
270
          m_socket->Bind6 ();
271
          m_socket->Connect (m_peerAddress);
272
        }
263
    }
273
    }
264
  m_socket->SetRecvCallback (MakeNullCallback<void, Ptr<Socket> > ());
274
  m_socket->SetRecvCallback (MakeNullCallback<void, Ptr<Socket> > ());
265
  m_socket->SetAllowBroadcast (true);
275
  m_socket->SetAllowBroadcast (true);
(-)a/src/applications/model/udp-trace-client.h (+4 lines)
 Lines 92-97   public: Link Here 
92
   * \brief set the remote address and port
92
   * \brief set the remote address and port
93
   * \param ip remote IP address
93
   * \param ip remote IP address
94
   * \param port remote port
94
   * \param port remote port
95
   * \deprecated The non-const uint16_t argument is deprecated and will be
96
   * removed in a future release. Currently, if the provided address is of
97
   * type InetSocketAddress or Inet6SocketAddress, this argument is ignored
98
   * because it can be specified within the address.
95
   */
99
   */
96
  void SetRemote (Address ip, uint16_t port);
100
  void SetRemote (Address ip, uint16_t port);
97
101

Return to bug 2474