Go Back   The UNIX and Linux Forums > Top Forums > Programming
.
google site



Programming Post questions about C, C++, Java, SQL, and other programming languages here.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-27-2008
Registered User
 

Join Date: May 2008
Posts: 1
Question help regarding socket programming

i m using sockets for setting up a connection between a server and a client.
When the clients gets connected to the server, its ip is conveyed to the server through one of the predefined structures in c library...
i save this ip address in an array....1st client's ip address goes to the zeroth element....2nd client's ip addr goes to the 1st element and so on....

the problem is that when 2nd client connects to the server, it overwrites the previously saved ip addresses,i.e. the zeroth element now saves ip addr of 2nd client....

can anyone tell me a way to get out of this situation???
thnx in advance...
Sponsored Links
  #2 (permalink)  
Old 05-28-2008
Registered User
 

Join Date: Feb 2008
Location: New Delhi
Posts: 29
Please post your code snippet of server. This way we won't be able to help you much.

- Dheeraj
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Socket programming maracumbigo Programming 4 02-11-2008 02:34 AM
Socket Programming arunviswanath Programming 7 01-30-2007 03:18 PM
socket programming damn_bkb IP Networking 6 11-19-2006 02:10 AM
Socket Programming socket soshell Programming 2 06-29-2004 08:49 AM
Socket Programming joseph_shibu Programming 1 11-05-2001 10:37 AM



All times are GMT -4. The time now is 09:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2010. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0