07-31-2003
Client Ip Address
I have a UNIX daemon program which takes client connections via TCP/IP sockets.
What I need to know is if there is any way of getting the IP address of the client socket once a connection has been made... or do I have to code my client to send it manually ?
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I am using the telnet client on windowsNT to access the Unix system.
I want to find out the IP address of the telnet client from the server side.
The reason is I want to set the DISPLAY environment variable when the user is logged on.
Is there anyway that the the Unix server can... (1 Reply)
Discussion started by: vtran4270
1 Replies
2. UNIX for Dummies Questions & Answers
when working on a telnet is it possible the client machine accessing the server machine supply its IP Address to the server machine . The only other shell i can use is the TCL shell. (2 Replies)
Discussion started by: rolly
2 Replies
3. Programming
Hi All,
When I connect to a unix server from a client machine,
how can I get the IP address of the client?
One way of retrieving IP address of client which initiates an active connection to the server is through /var/adm/utmpx file
upon login; client's IP address and other info would have... (4 Replies)
Discussion started by: matrixmadhan
4 Replies
4. Programming
I read an other post with a similar title but thios is different.
here is a basic portion layout of our network
Win PC 1 w/Refection X --
|
Win PC 2 w/Refection X --
|-- 1 of 6 HP Unix servers -- Win 2k pc
Win PC 3 w/Refection X --
... (0 Replies)
Discussion started by: fayette
0 Replies
5. IP Networking
A client(PC) connects to an unix server via terminal emulator.
How can I obtain that client's IP address?
The unix server is an old SVR4.2 (NCR) and the "who" command
does not show ip addresses.
I need a command or a shell script or a C/C++ program that will
help me to obtain the client's... (6 Replies)
Discussion started by: ka2d2
6 Replies
6. Solaris
Hi
How to get the IP address / Host name of a particular user connected to Unix Server.
For example: If used 'DevUser1' is connected to Unix server. I need to find out from which PC this connection has been made.
How can this be achieved?
Thanks (6 Replies)
Discussion started by: MVL
6 Replies
7. UNIX for Advanced & Expert Users
Hi. We use an Isilon cluster system to provide our NAS. The Isilon uses a round-robin DNS setup to spread mount requests across the many nodes of the cluster. When a node needs work, the filesystems that are mounted to it need to be moved to other nodes prior to shutting the node down. I... (2 Replies)
Discussion started by: rascalrick
2 Replies
8. Solaris
hi
can anyone fine a solution thwe the problem that am facing
i was trying to install sun4v client vth sol10_U8,
but when i played "boot net"
its asking for "requesting internet address for 0:21:28:17:80:f4
plz give me a sol for this (1 Reply)
Discussion started by: all_is_well
1 Replies
9. UNIX for Advanced & Expert Users
Hi ,
Could someone let me know how to detect duplicate ip address after assigning ip address to ethernet interface using c program (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies
10. Web Development
how to enable x-client-ip address in apache webserver LogFormat
i tried below option, but no luck...
1. LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
2. LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
3.... (0 Replies)
Discussion started by: raghur77
0 Replies
LEARN ABOUT OPENDARWIN
socket.h
socket.h(3) Library Functions Manual socket.h(3)
NAME
socket.h -
Network addresses and sockets related classes.
SYNOPSIS
#include <cc++/address.h>
Classes
class ost::Socket
The Socket is used as the base for all Internet protocol services under Common C++.
class ost::DCCPSocket
DCCP sockets are used for stream based connected sessions between two sockets.
class ost::UDPSocket
UDP sockets implement the TCP SOCK_DGRAM UDP protocol.
class ost::UDPBroadcast
Representing a UDP socket used for subnet broadcasts, this class provides an alternate binding and setPeer() capability for UDP
sockets.
class ost::UDPTransmit
Representing half of a two-way UDP connection, the UDP transmitter can broadcast data to another selected peer host or to an entire
subnet.
class ost::UDPReceive
Representing half of a two-way UDP connection, the UDP receiver can receive data from another peer host or subnet.
class ost::UDPDuplex
UDP duplex connections impliment a bi-directional point-to-point UDP session between two peer hosts.
class ost::TCPSocket
TCP sockets are used for stream based connected sessions between two sockets.
class ost::TCPV6Socket
TCPV6 sockets are used for stream based connected sessions between two ipv6 sockets.
class ost::TCPStream
TCP streams are used to represent TCP client connections to a server by TCP protocol servers for accepting client connections.
class ost::TCPSession
The TCP session is used to primarily to represent a client connection that can be managed on a separate thread.
class ost::SimpleTCPStream
Simple TCP Stream, to be used with Common C++ Library.
Namespaces
namespace ost
Macros
#define INVALID_SOCKET -1
#define _IOLEN64
#define _IORET64
#define MSG_DONTWAIT 0
#define MSG_NOSIGNAL 0
#define SOCK_DCCP 6
#define IPPROTO_DCCP 33
#define SOL_DCCP 269
#define DCCP_SOCKOPT_AVAILABLE_CCIDS 12
#define DCCP_SOCKOPT_CCID 13
#define DCCP_SOCKOPT_TX_CCID 14
#define DCCP_SOCKOPT_RX_CCID 15
Typedefs
typedef int SOCKET
Variables
class __EXPORT ost::SimpleTCPStream
Detailed Description
Network addresses and sockets related classes.
Macro Definition Documentation
#define _IOLEN64
Referenced by ost::SocketPort::peek(), ost::UDPSocket::peek(), ost::TCPStream::peek(), ost::SocketPort::receive(),
ost::UDPReceive::receive(), ost::SocketPort::send(), ost::UDPTransmit::send(), and ost::UDPTransmit::transmit().
#define _IORET64
#define DCCP_SOCKOPT_AVAILABLE_CCIDS 12
#define DCCP_SOCKOPT_CCID 13
#define DCCP_SOCKOPT_RX_CCID 15
#define DCCP_SOCKOPT_TX_CCID 14
#define INVALID_SOCKET -1
#define IPPROTO_DCCP 33
#define MSG_DONTWAIT 0
Referenced by ost::UDPTransmit::transmit().
#define MSG_NOSIGNAL 0
Referenced by ost::UDPTransmit::send(), and ost::UDPTransmit::transmit().
#define SOCK_DCCP 6
#define SOL_DCCP 269
Typedef Documentation
typedef int SOCKET
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 socket.h(3)