Re: [gnet-dev] specifying local address to bind to
- From: David Helder <dhelder umich edu>
- To: <wroberts1 home com>
- Cc: <gnet-dev gnetlibrary org>
- Subject: Re: [gnet-dev] specifying local address to bind to
- Date: Tue, 24 Apr 2001 15:09:57 -0400 (EDT)
On Wed, 18 Apr 2001 wroberts1 home com wrote:
> maybe it could be like this?
>
> GInetAddr *local_addr_t = gnet_inetaddr_new("192.168.1.1", 22222);
> GInetAddr *local_addr_u = gnet_inetaddr_new("192.168.1.1", 11111);
> gnet_tcp_socket_server_new_iaddr(local_addr_t);
> and gnet_udp_socket_new_iaddr(local_addr_u);
>
> Local port and address could be bound with one argument?
> These socket setup functions could grab both from the sockaddr in
> GinetAddr*.
I added:
GUdpSocket* gnet_udp_socket_new_interface (const GInetAddr* iface)
GTcpSocket* gnet_tcp_socket_server_new_interface (const GInetAddr* iface)
gnet_tcp_socket_server_new2 will be depricated in favor of new_interface.
David
--
__ _ __ David Helder - University of Michigan
___/ /__ __ __(_)__/ / dhelder umich edu
/ _ / _ `/ |/ / / _ / http://www.eecs.umich.edu/~dhelder
|_,_/|_,_/|___/_/|_,_/ Jungle Monkey: http://www.junglemonkey.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]