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
send(sock,buffer,size0f(buffer),0); //

connectServer(struct sockaddr_in *clientAddr, int *sock)
arr[1] = "serverPC";

hp = gethostbyname(arr[1]);

*sock = socket(AF_INET,SOCK_STREAM,0)
servAddr.sin_family = AF_INET;
bcopy(hp->h_addr,&servAddr.sin_addr, hp->h_length);
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?