10 More Discussions You Might Find Interesting
1. Solaris
can anyone tell me how can i configure network in unix with dynamic ip on my DHCP server?? (7 Replies)
Discussion started by: Reham.Donia
7 Replies
2. Shell Programming and Scripting
Hi all,
I have to sftp a file (put) from AIX server to Windows 2000 server.
The question is Windows 200 server that i am using doesnt have any SFTP server , if so i know we need to install one.
The question here is for writing a sftp script that as to run everyday as part of cron job we... (0 Replies)
Discussion started by: reddymails
0 Replies
3. UNIX for Dummies Questions & Answers
:mad:
Hello,
I am a beginner at UNIX. I have a server running SCO UNIXWARE 7.1.0
Every morning this week the server has been down. I have to Hardboot her to get her back online.
What commands can I do to help me diagnose what is going on?
This is urgent....thank you. (3 Replies)
Discussion started by: jback
3 Replies
4. UNIX for Dummies Questions & Answers
Hello
As per requirements, can i Install a MSSQL SERVER on UNIX ,
is it possible., can i install or not.., could u plz give me reply with
some installation details..........
Regards&Thanking You
sreedhar G (1 Reply)
Discussion started by: sreedhargunda
1 Replies
5. UNIX for Dummies Questions & Answers
Hi everyone
Firstly I apologise for my total lack of knowledge about UNIX. Its unfortunately something I have never had any exposure to (Until Now).
I administer a smallish Windows 2000 network with all the usual bits and pieces that involves, and have been given the task of joining a Unix... (3 Replies)
Discussion started by: maestro
3 Replies
6. Windows & DOS: Issues & Discussions
i am using windows 2000 server. my query is as follows:
there are 2 directories say c:\emp & c:\exe. DataBase (DB) files are there in emp folder and the executables are in exe folder. Now i want to share the exe folder to the clients. If i give read permission to the exe folder and no... (3 Replies)
Discussion started by: raguramtgr
3 Replies
7. Solaris
i have a question i want to setup a unix server and 2000 server with an xp client i want to run bind can i still setup a primary dns on the 2000 box or can u use secondary dns on 2000 also i want to setup an exchange server on the 2000 server for email between the windows machines?
basically i... (2 Replies)
Discussion started by: rmuhammad
2 Replies
8. Cybersecurity
I setup a Windows 2000 Server so that a G4 could access one specific folder. The only way this contact could take place between the two operating systems is with Maclan. I have not installed it with the PCmaclan currently, I have only been reading about it.
Can someone assist me with this... (0 Replies)
Discussion started by: pmoncriffe
0 Replies
9. UNIX for Dummies Questions & Answers
Hi,
i have 4 Unix Sco openservers, 4PCs running windows 2000, and 1 PC with windows server which i want to configure in the same network.
During the configuration procedure, the wizard of Windows 2000 SERVER ask you if this is the only server in the network, now it will be the only WINDOWS... (2 Replies)
Discussion started by: BAM
2 Replies
10. UNIX for Dummies Questions & Answers
Okee problems...!!
What is happening: Unix server with some programms, workstations are windows 2000, the workstations work good but when you start a programm on the Unix server the CPU of the workstations go to 100% usage resulting that the system gets very slow. The programm well its running so... (2 Replies)
Discussion started by: zerocool
2 Replies
CURLOPT_UNIX_SOCKET_PATH(3) curl_easy_setopt options CURLOPT_UNIX_SOCKET_PATH(3)
NAME
CURLOPT_UNIX_SOCKET_PATH - set Unix domain socket
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_UNIX_SOCKET_PATH, char *path);
DESCRIPTION
Enables the use of Unix domain sockets as connection endpoint and sets the path to path. If path is NULL, then Unix domain sockets are dis-
abled. An empty string will result in an error at some point, it will not disable use of Unix domain sockets.
When enabled, curl will connect to the Unix domain socket instead of establishing a TCP connection to a host. Since no TCP connection is
created, curl does not need to resolve the DNS hostname in the URL.
The maximum path length on Cygwin, Linux and Solaris is 107. On other platforms it might be even less.
Proxy and TCP options such as CURLOPT_TCP_NODELAY(3) are not supported. Proxy options such as CURLOPT_PROXY(3) have no effect either as
these are TCP-oriented, and asking a proxy server to connect to a certain Unix domain socket is not possible.
The application does not have to keep the string around after setting this option.
DEFAULT
Default is NULL, meaning that no Unix domain sockets are used.
PROTOCOLS
All protocols except for file:// and FTP are supported in theory. HTTP, IMAP, POP3 and SMTP should in particular work (including their
SSL/TLS variants).
EXAMPLE
Given that you have an nginx server running, listening on /tmp/nginx.sock, you can request a HTTP resource with:
curl_easy_setopt(curl_handle, CURLOPT_UNIX_SOCKET_PATH, "/tmp/nginx.sock");
curl_easy_setopt(curl_handle, CURLOPT_URL, "http://localhost/");
If you are on Linux and somehow have a need for paths larger than 107 bytes, you could use the proc filesystem to bypass the limitation:
int dirfd = open(long_directory_path_to_socket, O_DIRECTORY | O_RDONLY);
char path[108];
snprintf(path, sizeof(path), "/proc/self/fd/%d/nginx.sock", dirfd);
curl_easy_setopt(curl_handle, CURLOPT_UNIX_SOCKET_PATH, path);
/* Be sure to keep dirfd valid until you discard the handle */
AVAILABILITY
Since 7.40.0.
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO
CURLOPT_OPENSOCKETFUNCTION(3), unix(7),
libcurl 7.54.0 December 21, 2016 CURLOPT_UNIX_SOCKET_PATH(3)