|
Your code looks OK, however, some things need to be checked.
1. What is the return code from the send API? The return code should be the length of the data you sent.
2. Did you translate the EBCDIC string to ASCII before sending? If data was sent in EBCDIC it can make problems to the windows program that will get the "strange character."
3. Did you make sure that the sockdtalen is correct? sockdtalen is the length of structure you sent.
4. It is not surprising that the receive is blocked because the remote windows program probably did not send data to you.
5. Please note that some of the problems may be the remote program "fault", try to test the remote program by using one of the socket tools available. ==================================
MORE INFORMATION ON THIS TOPIC
==================================
Visit the ITKnowledge Exchange and get answers to your connectivity questions fast.
The Best Web Links: Tips, tutorials and more.
PC/Windows connectivity expert Shahar Mor is available to answer your toughest networking questions. Ask Shahar a question or read his previously answered questions here.
|