LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-15-2018, 07:09 PM   #1
bkannadassan
LQ Newbie
 
Registered: Sep 2017
Posts: 10

Rep: Reputation: Disabled
Reg: Reg Single Process Multiple sockets!


Hi All!

I know that with setns a single process can switch across different network namespace. Now sameway we should be able to open sockets in different namespace am I rt ?. If this is allowed how are socket events handled when a same process opened in different namespaces ?. Is it like the socket events will be queued for the process to switch to the namespace ?. Or is it like we will miss those events. Sorry if this looks naive.

rgds
Balaji Kamal Kannadassan
 
Old 07-18-2018, 02:51 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,844

Rep: Reputation: 161Reputation: 161
Why do you think socket is relative to name-space? It should be relative to IP address space.
 
Old 07-18-2018, 07:24 PM   #3
bkannadassan
LQ Newbie
 
Registered: Sep 2017
Posts: 10

Original Poster
Rep: Reputation: Disabled
Since we are talking about network namespace and sockets are bound to network. Wasn't sure if a process switches across multiple network namespace and opens sockets in each of them would process get event in the network namespace currently they are in or will we get from other sockets as well.

rgds
Balaji Kamal Kannadassan
 
Old 07-19-2018, 02:37 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,844

Rep: Reputation: 161Reputation: 161
For socket itself, it is relative to IP address only. But before opening a socket and if DNS server is used to translate network name to IP address, the step is relative to name space.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to prevent single point of failure without reg. new domain? postcd Linux - Networking 1 12-08-2015 05:28 AM
Windows: Which program can track the reg updates at software install and make a reg? frenchn00b General 5 11-20-2008 04:26 PM
Reg:COM maniviswa Linux - Server 1 05-22-2008 02:23 PM
sqlite3_load_extension - reg zoobave Programming 2 08-01-2007 02:23 AM
Nice surprise Kaffeine plays Reg 1 and Reg 2 disks 1kyle SUSE / openSUSE 1 10-10-2005 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:34 AM.

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