Hi,
I have written a code for client server communication through sockets.
In server code i assigned IP add and port number like :
s_addr.sin_addr.s_addr = inet_addr("127.0.0.1");
s_addr.sin_port = 5432;
whereas in client code IP and port numbers are declared as:
addr.sin_addr.s_addr = inet_addr("127.0.0.1");
addr.sin_port = 5432;
I want to knw how can i run server code.Do i have to run it in background if yes then wats the instruction to run a process in background and second thing i want to knw is,do i have to give ip address or port number while running server and client C file.If anyone can tell me how i can execute this client server code.Thanks.
I have written a code for client server communication through sockets.
In server code i assigned IP add and port number like :
s_addr.sin_addr.s_addr = inet_addr("127.0.0.1");
s_addr.sin_port = 5432;
whereas in client code IP and port numbers are declared as:
addr.sin_addr.s_addr = inet_addr("127.0.0.1");
addr.sin_port = 5432;
I want to knw how can i run server code.Do i have to run it in background if yes then wats the instruction to run a process in background and second thing i want to knw is,do i have to give ip address or port number while running server and client C file.If anyone can tell me how i can execute this client server code.Thanks.