is a data communications endpoint for exchanging data between processes executing within the same host operating system.

learn more… | top users | synonyms

1
vote
0answers
62 views

Solaris 10 on x86: local sockets (unix domain sockets) very very slow? [closed]

I'm writing an application both on Linux and Solaris 10. It uses local sockets for some internal communications. On Linux an open, exchange one short message & close cycle takes about 10us elapsed ...
1
vote
1answer
114 views

Communication to device is lost when network starts on boot up?

I have an application that opens a socket on port 4444 to a device (/dev/linkToDevice). The "linkToDevice" is a link to ttyUSB0. The application is a c++ program of which is now a daemon and runs at ...
1
vote
1answer
304 views

Where to locate “sockets”

I am new to this, so sorry if its obvious. I am running a Debian server and installing the likes of UWSGI, NGinx etc on there. The configurations keep talking about pointing to "sockets". In the ...
1
vote
1answer
503 views

Netstat shows programs running on different ports then they should

I have some code I'm testing. Program A listens on a predefined socket for program B to connect to and for my testing I'm running 32 instances of the programs A and B. I've written my script to tell ...
1
vote
1answer
355 views

How to limit all tcp traffic to the network interface the session was initiated on?

I have an embedded linux system with two network interfaces (lan0, wlan0) that are configured to the same subnet. A server on this system accepts tcp connections on both interfaces. How I can assure ...
0
votes
1answer
459 views

How to connect to port immedeately, avoiding socket_bind(): unable to bind address?

When running a code that is supposed to read from a TCP/IP port I often get the following message (depending exactly what language have been used): socket_bind(): unable to bind address I know that ...
0
votes
2answers
56 views

Why flipping is done on data from Big endian before storing in LE?

Simple but confusing question for a beginner. Suppose A is a BE machine and is sending 0x44332211 sending data to B which is LE. By default A will be using htonl of 0x44332211 which is nothing but ...
0
votes
1answer
2k views

Could not bind socket: Permission denied when trying to start NDOUtils using UNIX socket

I followed these directions to a tee: http://shah-oss.blogspot.com/2010/12/ndoutils-installation-on-centos-for.html Everything was going well until I actually tried to run this command (there is a ...
0
votes
1answer
531 views

pcap and raw socket [closed]

I want to develop an application (module or user-level if possible) to create a raw socket in RHEL stealing all level-2 packets directly from kernel (without being routed or handled by other open ...
0
votes
2answers
529 views

Force getaddrinfo to use IPv4

The man page says: The getaddrinfo(3) function is not limited to creating IPv4 socket address structures; IPv6 socket address structures can be created if IPv6 support is available. These ...
0
votes
0answers
68 views

Socket output from server process disappears when process is run by cron

I'm having a really strange problem that only occurs when a server process is launched by cron. The environment is an Ubuntu 12.0.4 LTS distro running in an Azure VM, with an exposed endpoint to the ...
0
votes
2answers
179 views

Physical layer header is not present in the data read from raw sockets?

i have read about RAW sockets that they are UNIX domain sockets and don't generally go over the wire unlike TCP or UDP. They are used for interprocess communication. Also they are used in the ...
0
votes
0answers
589 views

Symbolic link to a socket

From a security point of view, is it safe to create a symbolic link to a socket file? The following bits of context refer to the deployment of a web application on a shared hosting service. $ ls -al ...
-1
votes
3answers
408 views

telnet implementation using C [closed]

The program in general is I want to implement telnet program. On the client side user send its logging name and password, and if it is correct he starts to send commands to the server On the Server ...