Client Server c code

Discussion in 'Programmer's Corner' started by learneros, Feb 4, 2008.

  1. learneros

    Thread Starter Member

    Nov 2, 2007
    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("");
    s_addr.sin_port = 5432;

    whereas in client code IP and port numbers are declared as:

    addr.sin_addr.s_addr = inet_addr("");
    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.