March 15th, 2004, 10:11 AM
HELP:Can connect to server but server didnt receive sent data
server is using MFC socket class on win2K
client using sockets on solaris 2.3
I cant seem to receive anything at Server side coz I put breakpoints in OnReceive() & Receive() of the sock function.
connection is ok coz server side shows connected IP address n port on the application window, just that no data received.
This is the CLIENT side
connectServer(&clientAddr,&sock); //see below
//fread data from a file to a buffer
connectServer(struct sockaddr_in *clientAddr, int *sock)
arr = "serverPC";
hp = gethostbyname(arr);
*sock = socket(AF_INET,SOCK_STREAM,0)
servAddr.sin_family = AF_INET;
servAddr.sin_port = htons(9000);
result = connect(*sock,&servAddr,sizeof(servAddr) );
omitted the err checking codes
any idea where went wrong?
server side code needed?
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!