Problem with recv() function in winsock.h header file
-
Hi Friends, In socket programming I want to connect double byte charcters. Earlier we used recv() function for single byte charcter. If we use double byte chracter in below recv function, its coming as a question mark symbol. If anybody knows how can I handle double byte charcter in Scoket programing(recv function),Please let me know. My codesnippet: while( bytesRecv == SOCKET_ERROR ) { bytesRecv = recv( ConnectSocket, recvbuf, 64, 0 ); if ( bytesRecv == 0 || bytesRecv == WSAECONNRESET || CheckTimeOut()) { return CloseListen(); } } Note:Here recvbuf works for singel byte not for doublebyte charcters. Thanks in advance.
-
Hi Friends, In socket programming I want to connect double byte charcters. Earlier we used recv() function for single byte charcter. If we use double byte chracter in below recv function, its coming as a question mark symbol. If anybody knows how can I handle double byte charcter in Scoket programing(recv function),Please let me know. My codesnippet: while( bytesRecv == SOCKET_ERROR ) { bytesRecv = recv( ConnectSocket, recvbuf, 64, 0 ); if ( bytesRecv == 0 || bytesRecv == WSAECONNRESET || CheckTimeOut()) { return CloseListen(); } } Note:Here recvbuf works for singel byte not for doublebyte charcters. Thanks in advance.
Looks like you're in the wrong forum. C++/CLI is C++ with .NET. You want the visual C++ forum.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )