Does anyone know any good tutorials for writing custom application wizards for Visual C++ 2008?
Type: Posts; User: sunjayc99
Does anyone know any good tutorials for writing custom application wizards for Visual C++ 2008?
Ooh, looks like the error was coming from the receiving side. Didn't think of that.
Thanks!
tbuf is null-terminated and len is 7.
The calling code is
SockSend(&f.psock, tbuf, strlen(tbuf))
where tbuf is a char[85].
I've been working on a game.
One of the things the client-side code has to do is send the name of the player to the server. If I type anything that's more than 3 characters for the name ("Dude" for...
I was just wondering if it is possible for one console-based program to send keyboard input to another console-based program. For example, is there any way to write to another process's stdin?
So, after I serialize the data, would this be a good way to send it?
int SockSend(SOCKET *theirsock, char* buf, int len)
{
int nError;
int nsent = 0;
do
{
sorry, i guess i didn't phrase my question correctly.
what i meant was, couldn't i just use something like:
ListenSocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCPIP);
and
...
Thank you Cactus_Hugger!
I'm somewhat new to writing programs, so I didn't think about portability.
I'll be sure to read the serialization FAQ.
Looking at the examples from MSDN for windows sockets 2, they give this:
...
ZeroMemory(&hints, sizeof(hints));
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
...
Hello,
I was just wondering if there was any way to safely send structures across a network in sockets, since the send( function can possibly the entire data buffer I give it.
If I used
...