All About Circuits Forum  

Go Back   All About Circuits Forum > Software, Microcomputing, and Communications Forums > Programmer's Corner

Programmer's Corner Discussion forum for all aspects of programming and software engineering. Any software programming language welcome: C, C++, C#, Fortran, Java, Matlab, etc.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 02-04-2008, 04:28 PM
learneros learneros is offline
Junior Member
 
Join Date: Nov 2007
Posts: 14
Default Client Server c code

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.
Reply With Quote
Reply   Post New Thread

Bookmarks

Tags
, ,

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Matlab code needed!! zico Programmer's Corner 4 03-24-2008 07:25 PM
help in converting asm code to c code? alkid Programmer's Corner 4 11-07-2007 11:56 PM
Verilog - Code Posted - Please Help !! dash82 Programmer's Corner 0 10-23-2007 08:16 AM
C code to machine code question Joey_K Programmer's Corner 4 12-16-2006 12:02 PM
Rules, Code of Conduct and Terms and Conditions of Usage Feedback Dave Feedback and Suggestions 0 08-03-2006 10:45 AM


All times are GMT. The time now is 03:34 AM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Copyright © 2009, All About Circuits. All Rights Reserved.