Questions tagged [unix-socket]

UNIX domain sockets are a technology for interprocess communication on a single computer.

UNIX domain sockets are a technology for interprocess communication on a single computer. They allow processes on the same machine to establish bidirectional connections to exchange either continuous byte streams or datagram messages.

The API is in many places the same as the one used for TCP/IP network sockets. A UNIX domain socket listening for connections may be represented as an inode in the file system, depending on the operating system and the parameters used to bind that socket.

Unix Domain Sockets can only communicate within a Linux OS kernel, they can not communicate externally to a kernel.

Details are provided in the unix(7) man page.

699 questions
0
votes
0 answers

How to replace socket transport unix:// on Windows 7 Pro for python-based dbus-system?

I try to use this library to implement DBus on windows: https://github.com/LEW21/pydbus: I get error: Unknown or non-supported transport method unix:// for address unix:oath=/var/run/dbus/system_bus_socket If anyone knows straight-out-of-the-box…
Triq
  • 31
  • 6
0
votes
0 answers

Setting setKeepAlive(true)

I am trying test a server where we reduced the keepalive params (default 7200 sec to 300) on RHEL. I was setting: try { Socket tstSocket = new Socket(serverName, portNum); PrintWriter out = new…
Seattle427
  • 31
  • 3
0
votes
1 answer

EADDRINUSE error if I force kill the process and then try to re-launch it

var arDrone = require('ar-drone'); var PaVEParser = require('./PaVEParser'); var output = require('fs').createWriteStream('./vid.h264'); var client; var mostRecentFrame; var frameCounter = 0; const net = require('net'); const server =…
Daniel Paczuski Bak
  • 3,720
  • 8
  • 32
  • 78
0
votes
0 answers

Code that works on Apache II local host but not on a commercial hosting service server

I'm a rookie amateur trying to build my own site that uses PHP and a backend SQL database. Having got all my pages working with the database on an Apache II localhost, I have now moved my files to a commercial hosting service. Post migration, some…
Shoibal
  • 1
  • 2
0
votes
1 answer

Apache2 in Freebsd Concurrent request cause Connection reset

I am currently trying to move my web server (php zendframework based) from Ubuntu to FreeBSD. Both the servers having the same hardware configuration. After migration, I did JMeter test (Http request (Json), Concurrent = 200) of the server,…
Li Kevin
  • 83
  • 1
  • 8
0
votes
0 answers

Is there any cases that write in the domain socket blocks forever?

I have a multi-process project, and I use the domain sockets as the IPC method. For example, the process A has the multiple threads and they calls 'write' function to send the data to the process B. (All the domain socket functions are protected by…
0
votes
1 answer

Getting Django working with https using nginx gunicorn and unix sockets

I've been trying to get my Django site setup with https using Let's Encrypt. I've been running this site without https for a little while so I know the basic configuration works without https but after setting up the https stuff I get a "Not Found…
Anthony Ainsworth
  • 917
  • 1
  • 7
  • 9
0
votes
0 answers

accept() not returning different id (Unix domain Sockets)

#include #include #include #include #include #include #include #include #include #include using namespace std; #define QLEN 10 #define BUFFER …
Crosk Cool
  • 664
  • 2
  • 12
  • 27
0
votes
1 answer

What is the fastest way to transfer data between C++ and Java

I have a C++ program and a Java program. On the C++ side, I have a vector having millions of entries. I need to transfer this data to my Java program. So far, I have tried the following: Created a unix socket, converted the vector to a long string…
AkhlD
  • 2,596
  • 2
  • 16
  • 15
0
votes
1 answer

Output is delayed with UNIX domain socket

I am trying to write a simple server and client that will act as a shell, in C. The server receives data from the client in the form of system commands, executes them and redirects the output to the socket. The client then reads the socket, and…
Viggo Lundén
  • 748
  • 1
  • 6
  • 31
0
votes
1 answer

How can I access the socket object from within a Twisted/Klein route method in Python?

I am using Twisted/Klein to create an API over UNIX-domain sockets for some command-line services I am writing. I would like to be able to get access to the socket object so that I can check the PEER CREDENTIALS for that socket to determine who has…
Deven Phillips
  • 1,129
  • 14
  • 39
0
votes
1 answer

UNIXSocket .connect() but don't have full path to socket

This is for a networks project I'm working on. It requires us to simulate a bridge. The sockets become the ports basically. But I was told in order for a Unixsocket to work it needs the full path to the socket and I don't know what the full path…
isignisign
  • 541
  • 2
  • 4
  • 13
0
votes
1 answer

libuv - How to test for a disconnection of a listening socket from client (relay application)

My application sporadically modifies and relays messages that it receives to a listener server daemon (all using unix domain sockets, so uv_pipe_t). (Workflow that has me stumped) When the first message has to be relayed, it makes a uv_try_write()…
Northstar11
  • 21
  • 1
  • 7
0
votes
1 answer

How to make a raw packet with special header structure and send over raw unix socket

I need to create a message and send it over a unix socket. I have a socket defined as such: socket(AF_UNIX, SOCK_RAW, 0) The header structure of the message/packet i want to send is as follows: struct map_msghdr { uint8_t map_msglen; /* to…
Pheonix7
  • 2,131
  • 5
  • 21
  • 38
0
votes
1 answer

Unable to open file using c

I have created one function which filters data from a data file and prints it to another file using redirection operator of unix below is the function void getdetailbyparam(char *name,char *type,int maxprice,int minprice) { …
Abhishek Gangwar
  • 1,697
  • 3
  • 17
  • 29