Subj : WinSock
To : Digital Man
From : Jon Justvig
Date : Tue Jun 12 2018 01:13 am
Re: WinSock
By: Digital Man to Jon Justvig on Sat Jun 09 2018 08:08 pm
DM,
Okay, I figured out send() just fine. I'm having major issues with recv().
Right now, I can only get it to input one character, even with char arrays or
strings. Here's a sample:
int result;
// our recv loop
while (true)
{
result = recv(current_client, buffer, sizeof(buffer), 0); // recv cmds
Sleep(10);
if (result > 0)
{
cout << "\n\tMessage from client: " << buffer;
send(current_client, (const char*)buffer, sizeof(buffer), 0);
}
Sincerely,
Jon Justvig
Stepping Stone BBS
telnet://vintagebbsing.com:2325
http://vintagebbsing.com:81
---
� Synchronet � Stepping Stone BBS - vintagebbsing.com:2325