Finally i'm tryin to use select()
But select always return -1 .... any idea ?
client side:
FD_ZERO(&readset);
FD_SET(mySocket, &readSet);
timeVal.tv_sec = 1;
timeVal.tv_usec = 0;
Type: Posts; User: trooper
Finally i'm tryin to use select()
But select always return -1 .... any idea ?
client side:
FD_ZERO(&readset);
FD_SET(mySocket, &readSet);
timeVal.tv_sec = 1;
timeVal.tv_usec = 0;
I need to send many chunks of a file through a socket ... while looping, the client need to check for incoming messages from the server.
ex:
while(1)
{
//check for incoming message from...
I think that the formula as was looking for looks like ...
BSC = 0;
BSC ^= a[0];
BSC ^= a[1];
.
.
.
.
.
Humm if we can add char value into an int, I'll try this ... thanks
If I understand the explanations, I have to loop and do an addition with the binary value of each char (on the client side and on the server side). Then I'll know if this is the same exact value.
...
Hummmm
I don't know much about hidden functionnality behing sockets but I already send some text ("ABCDE") through a char and i can get it back on the other side ("ABCDE") .
i guess it's called...
I'm totally lost :)
I'm sending a char[] through a socket and I want to send some numeric information.
I guess you mean using those operators >> << ...
I will go read about this !
Thank...
I need to take a value out of an unsigned short and add it to a char array.
ex.:
unsigned short a = 6849;
char b[20];
any idea about how to place "6849" into b ?
Thank you !
It's probably easy for most of you but ... is there and easy way to get a BSC from a char array ... ex.: char buffer[20]; ?
thank you !
This is an assignment ! :)
I'm ok with socket and circular buffer. But I know I will have some problems with threads. I will probably find a way to slow the rate and calculate crc with some...
Hi all, I have to program a proxy who will accept connections from multiple clients. The proxy must identify the client with logins and passwords stocked in a file. The clients tranfer blocks of...