Here's the code from the client side. The server is a third party app and it
sees a connection, but never sees any data coming through. From a pure Win32
app, the third party app is able to see the data. I have tested this locally
using a test server and the data goes through fine.
----------------
IPAddress ipAddress = IPAddress.Parse(host);
IPEndPoint ipe = new IPEndPoint(ipAddress,port);
socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp);
socket.Connect(ipe);
String msgtxt = "Hello";
byte[] msg = Encoding.ASCII.GetBytes(msgtxt);
int bytesSent = 0;
bytesSent = sk.Send(msg,SocketFlags.DontRoute);
sk.Shutdown(SocketShutdown.Both);
sk.Close();
-------------------
Thanks
Subu
"Hasan O" wrote:
> Hi ,
> search for my old questions about socket s and show us your code , maybe i
> can help you
|