LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2005, 10:38 AM   #1
linuxanswer
Member
 
Registered: Oct 2003
Distribution: woodY 3.0 stable
Posts: 61

Rep: Reputation: 15
To close


Hi guys, how can i code a server that accepts two connections on Port 15000, but the first connect must be closed like the port is closed, and the second Open ? 10x in advance
 
Old 05-28-2005, 01:20 PM   #2
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
What language? And I assume you'll want to check the documantation for sockets for whatever language you select.
 
Old 05-28-2005, 03:00 PM   #3
linuxanswer
Member
 
Registered: Oct 2003
Distribution: woodY 3.0 stable
Posts: 61

Original Poster
Rep: Reputation: 15
yes, in C under Unix Socket
 
Old 05-29-2005, 05:34 AM   #4
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
Ok I have no ideea what you need .. you need a server wich accepts two connections .. it closes the first connection and stops listening but keeps the second connection opened ? is that it ?

C socket programming .. see Beejs guide to network programming and the AdvancedLinuxProgramming book, the section on inter-process communication
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
So close... yet, so very far! rookworm Debian 4 10-25-2005 10:34 PM
so close! need your help! zippo85 Linux - Wireless Networking 1 12-08-2004 12:04 PM
oh so close jasonmantey Linux - Newbie 1 04-13-2004 08:25 AM
So close yet still so far. raid517 Linux - Software 6 07-05-2003 12:26 PM
Help - So close but yet so far!! Nubell Linux - Newbie 15 01-22-2003 06:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration