>> i am running this on unix by the way
if both client and server are on the same os (unix) then the problem is something else.
>> how do i change the integer into an ascii cod
c++ example, use stringstream class
#include <sstream>
...
...
stringstream stream;
int n = 123;
stream << n;
cout << stream.str();
c example
#include <stdio.h>
#include <string.h>
...
...
char buffer[80];
int n = 123;
sprintf(buffer,"%d", n);
printf("%s\n", buffer);
Last edited by Ancient Dragon; Mar 25th, 2007 at 4:26 pm.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2283
Retired and Enjoying Life
Offline 21,963 posts
since Aug 2005