bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TCPSocket problem


From: David Sugar
Subject: Re: TCPSocket problem
Date: Fri, 09 Nov 2001 22:33:38 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010802

TCPSocket objects are used to bind local ports for implimenting servers. You want to use TCPStream or TCPSession with the IP address of the target host and port you want to connect to. Using the server object is for creating "accept" handling for inbound TCP connections.

Igor Alfirevic wrote:

Hi

I am new with commonc++. I run win32 version release 1.9.0 sample. But if i use:

myTCPSocket server(addr);

i can not open port.

I try :

 char* ip = "127.30.2.52:4096";
 InetAddress inetIP(ip);

myTCPSocket server(inetIP);

and I sucsed.

I also can not open session if i use

myTCPSession::myTCPSession(TCPSocket &server) : TCPSession(server) {};

so is it problem with TCPSocket?? Is there a bug or am i doing something wrong






reply via email to

[Prev in Thread] Current Thread [Next in Thread]