Sponsored Content
Special Forums IP Networking Socket and interface (eth0, eth 1)relationship Post 302542973 by Gopi Krishna P on Friday 29th of July 2011 06:15:04 AM
Old 07-29-2011
Socket and interface (eth0, eth 1)relationship

hi,

Could some one answer this please

we have a program with client socket declared which connect to a server

for the above program description we wont send an interface information ... let us suppose, I have two interfaces (eth0 , eth1) which are assigned some ip, which interface the above socket send data to ???????

please clarify
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Eth err: "3c501 device eth0 does not seem to be present"

HI, When I do 'service network restart' , I am getting the following error. "3c501 device eth0 does not seem to be present, delaying initialization" Can any one suggest me the cause/solution for this? When I do 'lspci' it is showing the ehternet card as " Ethernet controller"Marvell... (2 Replies)
Discussion started by: praveen_b744
2 Replies

2. Linux

Renaming eth interfaces

Hi I had a DL380 with two two port eth cards. I now replaced one with a four port eth card and my interfaces seemed to have jumped around. Is there a method of moving eth ports... eg making port eth4 eth2.:confused: (2 Replies)
Discussion started by: theroncj
2 Replies

3. UNIX for Dummies Questions & Answers

NIC and eth connection

folks; This might sounds stupid but i hope someone can give me an answer: On my Linux SUSE boxes, i have 2 NIC cards NIC1 & NIC2. I always assumed that NIC1 is eth0 when i run "ifconfig" and NIC2 is eth1 but i noticed that's not always the case. Is there a way or a command i can run to find... (1 Reply)
Discussion started by: Katkota
1 Replies

4. UNIX for Advanced & Expert Users

Bridge interface: Netlink socket notification

Hi, For one of my application(Linux 2.6) I am using a netlink socket to get the interface changes notification. socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE) Application receives netlink notification for Ethernet, bond interfaces but there is no notification about bridge interfaces changes. ... (6 Replies)
Discussion started by: learn more
6 Replies

5. IP Networking

Splitting eth0 traffic into two virtual interface

Hello everybody, I have been reading many posts about this topic but I have no figure out how to solve it. I need to split the traffic incoming on eth0 on two other interfaces (for instance one receiving on port 80 and the others on the other interface). I cannot understand how to do that.... (2 Replies)
Discussion started by: nicandro
2 Replies

6. Shell Programming and Scripting

dhcpclient for all the eth* which has no ip

I want to run dhcpclient for all the eth* which has no ip for example eth0 Link encap:Ethernet HWaddr 00:1E:67:3E:BA:EF UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0... (6 Replies)
Discussion started by: yanglei_fage
6 Replies

7. Linux

bringing up interface eth0 rtnetlink

Hi all, OS: fedora release 10 when i try to restart network service, ending up with following errors. There are two interfaces eth0 and eth1 bringing up interface eth0 rtnetlink answers file exists error adding <IP Address here> to eth0 bringing up interface eth0 rtnetlink answers... (2 Replies)
Discussion started by: lramsb4u
2 Replies

8. Red Hat

Find out which eth or device belongs to interface "port 1 PCI 4"

Hi, I´ve given only this info to configure a network interface : "port 1 PCI 4" I´ve been searching for any kind of relationship in the system which allow me to find the etc that must be configured... Please, could anybody help me? rhxx:#/root# lspci |grep -i "PCI BRIDGE" 00:01.0 PCI... (0 Replies)
Discussion started by: pabloli150
0 Replies

9. UNIX for Dummies Questions & Answers

Traffic moves to another eth

hi guys I have a server which has 2 nics eth0 and eth1 eth0 is used for our email traffic server. everything working fine some time later a eth1 was added for backup purposes so this new nic sends data to another vlan for backup purposes all of a sudden our mail server starts to fail... (3 Replies)
Discussion started by: karlochacon
3 Replies

10. IP Networking

Stuck at "bringing up interface eth0:"

Server is stuck at "Stuck at "bringing up interface eth0:"" after i hard reset the server I have IPMI access, please help me diagnose the cause if you can :( (0 Replies)
Discussion started by: postcd
0 Replies
IO::Socket::UNIX(3pm)					 Perl Programmers Reference Guide				     IO::Socket::UNIX(3pm)

NAME
IO::Socket::UNIX - Object interface for AF_UNIX domain sockets SYNOPSIS
use IO::Socket::UNIX; DESCRIPTION
"IO::Socket::UNIX" provides an object interface to creating and using sockets in the AF_UNIX domain. It is built upon the IO::Socket interface and inherits all the methods defined by IO::Socket. CONSTRUCTOR
new ( [ARGS] ) Creates an "IO::Socket::UNIX" object, which is a reference to a newly created symbol (see the "Symbol" package). "new" optionally takes arguments, these arguments are in key-value pairs. In addition to the key-value pairs accepted by IO::Socket, "IO::Socket::UNIX" provides. Type Type of socket (eg SOCK_STREAM or SOCK_DGRAM) Local Path to local fifo Peer Path to peer fifo Listen Create a listen socket If the constructor is only passed a single argument, it is assumed to be a "Peer" specification. NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE As of VERSION 1.18 all IO::Socket objects have autoflush turned on by default. This was not the case with earlier releases. NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE METHODS
hostpath() Returns the pathname to the fifo at the local end peerpath() Returns the pathanme to the fifo at the peer end SEE ALSO
Socket, IO::Socket AUTHOR
Graham Barr. Currently maintained by the Perl Porters. Please report all bugs to <perlbug@perl.org>. COPYRIGHT
Copyright (c) 1996-8 Graham Barr <gbarr@pobox.com>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.3 2013-03-04 IO::Socket::UNIX(3pm)
All times are GMT -4. The time now is 09:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy