> How can wxTCPConnection running on a client know what server name to
> use when making a connection? Or is it possible to start the server
> (wxTCPServer) with a particular server name (number) ?
The name in this case is that of a TCP service. These are listed in
/etc/services. You can also pass a string containing a decimal port number.
The name is looked up in /etc/services and the resulting TCP port number is
what will be connected to.
Your client and server should agree on what port number to use. If you
don't use a standard protocol, then allow the user to configure this and
suggest a reasonable default. Unprivileged programs should use a number
above 1024.
<http://en.wikipedia.org/wiki/TCP_and_UDP_port>
<http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers>
> In the server program what function do I use to set the server name/
> port number?
wxTCPServer::Create
<http://docs.wxwidgets.org/trunk/classwx_t_c_p_server.html>