Win32 Connectors and Named Pipes

Is it possible to use sockets on Win32 and not have the firewall block the port you are using?

On Unix, you can use IF_UNIXinstead IF_INET(i.e. named pipes instead of sockets ). Right now on Windows, you can open a socket using different protocols :

socket(AF_INET,    SOCK_RAW, IPPROTO_TCP);     //open an IPv4 socket
socket(AF_BTH,     SOCK_RAW, BTHPROTO_RFCOMM); //open a Bluetooth socket
socket(AF_NETBIOS, SOCK_RAW, IPPROTO_TCP);     //open an IPX/SPX socket
socket(AF_INET6,   SOCK_RAW, IPPROTO_TCP);     //open an IPv6 socket

Is there a way to open a named socket channel? For example. (hypothetical construction)

socket(AF_NAMEDPIPE, SOCK_RAW, IPPROTO_TCP);   //open a named pipe socket
+3
source share
3 answers

(, , - ), loopback- NIC , - (.. , , ) .

. , , , TCP/IP . , Win32 .

+5

, , loopback, . , , , , .

, ? , , , , - ( IP-).

+3

, - var dot var, Java, , .

-1

Source: https://habr.com/ru/post/1718663/


All Articles