0
votes
0answers
26 views

Sending char* throug TCP Socket in C (Unix) [migrated]

i'm just learning how to handle socket and tcp connection in C. I've got an application (a long one) which basically sends and receive char arrays with the system call write from server to client and ...
2
votes
1answer
82 views

Create a link to the Unix socket [duplicate]

Is there a possibility to create a hard link for an unix socket? I'm creating a jail and symbolic links won't work, so I'm looking for a solution, how to provide an unix socket inside chrootted ...
1
vote
1answer
1k views

Setting up PHP 5.4 with MySQL to use Unix Sockets

I've compiled PHP 5.4.5 from source, and I've installed nginx 1.2.1 and mysql 5.1.63-0ubuntu0.11.04.1 from apt-get on my Ubuntu 11.04 LTS server. I installed nginx using this: add-apt-repository ...
6
votes
2answers
3k views

Create Unix Named Socket from the Command Line

Is there a command similar to mkfifo but for domain sockets?
0
votes
3answers
292 views

How to connect with MySQL server if it won't connect via the socket?

I have an account on a shared server. I have jailshell access and also PhpMyAdmin. I want to run mysql commands via SSH but I'm getting an error: $ mysql -u mySqlUser -p mySqlPw Can't connect to ...
13
votes
4answers
11k views

How to find other end of unix socket connection?

I have a process (dbus-daemon) which has many open connection over UNIX sockets. One of these connections is fd #36: =$ ps uw -p 23284 USER PID %CPU %MEM VSZ RSS TTY STAT START TIME ...
15
votes
2answers
6k views

Unix socket vs TCP/IP host:port

Could someone please describe to me the pros and cons of using a Unix socket file vs a tcp/ip localhost:port when setting up services on a server (Ubuntu, FWIW)? In this particular instance it's for ...
1
vote
2answers
187 views

Can no longer open files in linux server!

We have a linux server running fine in prod for weeks, until our user base started to grow and our java server started to fail in many places! It turns out that all files and sockets are failing ...