ok i got the forking thing to work, i broadcast between a few servers to find a file. if a server has the file it replies to the broadcast but i need to find out the ip address for that replying...
Type: Posts; User: kaijuu
ok i got the forking thing to work, i broadcast between a few servers to find a file. if a server has the file it replies to the broadcast but i need to find out the ip address for that replying...
how about taking a recived message and reading the ip address from it.
agein is it possible and how is it done
hi quick question
can you communicate variubles between forks and if so how
can any one help tell me if this code will work or if im barking up the wrong tree
#include <stdio.h> /* for printf() and fprintf() */
#include <sys/socket.h> /* for socket(), bind(), and...
this is the code i was given for multiplexing
#include "TCPEchoServer.h" /* TCP echo server includes */
#include <sys/time.h> /* for struct timeval {} */
#include <fcntl.h> /*...
so can you sugesst a way to get similer results in a different way then
ok i better explain what im tring to do here
i have 10 clients and 1 server and im using sockets to connect them
imagin them like fingers.
my server asks which client the user would like to...
k sorry i dont quite understand this bu im tring
will this work
have all ten of my clients keep trying to set up a connection and have my server only alow the connection to the one it needs to...
hi a different problem i need the server to initiate the connection with the server all the code ive seen has the client conect to the server how to i do this
hi i have a small problem this is the code i was given for creating a socket
if (argc != 2) /* Test for correct number of arguments */
{
fprintf(stderr, "Usage: %s <Server...
just another thought
could i save the image on to the client computer and say, send a short string to the client and when it recives this string it displays the image that is stored in its...
just to clerify when you change a image to binary you read it to c like a txt document and send that over the socket
so how would i change it back from binary at the other end and display it on...
yeah its based on sockets and the images are saved on both client and servers
hi im currently trying to write a small program for my final project about networks but i really dont know were to start on it
this is what im tring to do
im using c to make a server send and...
sorry that works fine the cin i was struggiling because fgets kept giving me an error thanks a bunch
hi im having a bit of a problem with a gets function
void store::findF(void)
{
int i = 0;
bool serch = false;
char person[20];
//system("cls");
k i understand that my knolage is laking but i only have two days left on this project and i just need to get it working please help
anotther one
when i call this function it prints out eurika 12 times
void store::findF(void)
{
int i = 0;
bool serch = false;
char person[20];
k i took out the get char and it worked thanks agein
k i changed the while but the cin cant be removed do i have to use the cin.ignore agein or am i barking up the wrong tree
hi thanks for all the help so far the code i use is just what i was told to do during my c++ course though all corrections have been made a note of so i can use them in the future
another snag...
k i got it mostly working but for some reason the first two questions print in a single line
void people::enter(int i)
{
char k = 'y';
while (k == 'y')
{
cout <<...
thanks i didnt notice that
could you fix this for me as well as that worked fine
char k = 'y';
while (k == "y");
but wouldnt that stop me getting the users answer