I am using TCP/IP socket example i.e. "echoclient", and I am facing problems with writing and reading.
I am connecting to server socket but it shows null data. I don't know whether it is data conversion problem or any other issue.
I am using TCP/IP socket example i.e. "echoclient", and I am facing problems with writing and reading.
I am connecting to server socket but it shows null data. I don't know whether it is data conversion problem or any other issue.
In case if you are connecting via mobile, check with your GPRS/EDGE/3G service provider if they are not restricting arbitrary IPs ?
Also in case if you're connecting from Simulator on PC, check if you have Proxies over your network before internet ?
Download Wireshark and see if it helps debug. It can peek all network traffic.
It is always a good idea to use well tested libraries and implementation. Socket programming is c++ requires good understanding of OS if you want to write potable code. Try Ace Wrappers - http://www.cs.wustl.edu/~schmidt/ACE.html It provide well tested pattern based C++ implementation for distributed network programming.