berkeley-sockets Questions

2

Solved

I believe the shutdown sequence is as follows (as described here): The MSDN documentation (remarks section) reads: When using a connection-oriented Socket, always call the Shutdown method bef...
Centennial asked 4/9, 2015 at 11:50

2

Solved

I'm trying to code an agnostic echo server, that could accept both IPv4 and IPv6 connection. I'm working with addrinfo structure, set with getaddrinfo. Ipv4 connect has no problem while I can't get...
Isomerism asked 17/1, 2016 at 11:49

1

Solved

Recently I was working with the Berkeley socket API for IPv6, and noticed that IPv6 addresses (sockaddr_in6) have a field called sin6_scope_id, which was not part of IPv4 addresses. After searchin...
Lovemaking asked 18/1, 2018 at 19:33

5

Solved

For the following I'm assuming one network card. I have a component of my program which is designed to let others in the subnet know of its existence. For this, I've implemented a solution where ...
Grammalogue asked 19/11, 2009 at 9:49

2

I am trying to write a web server that listens on both IPv4 and IPv6 addresses. However, the code that I originally wrote did not work. Then I found out that the IPv6 structures work for both IPv4 ...
Kyanize asked 22/11, 2012 at 2:6

4

I've got code that looks something like this, where addr is a sockaddr*: struct sockaddr_in *sin = (struct sockaddr_in *) addr; const char *IP=inet_ntoa(sin -> sin_addr); I believe this is ve...
Hematology asked 12/8, 2010 at 5:9

3

Solved

I have read the documentation at least 10 times now and have also read some 10 or so code snippets and full programs where non-blocking sockets are used for sending data. The problem is that some o...
Heard asked 20/3, 2011 at 20:57

1

Solved

The constant INADDR_ANY is the so-called IPv4 wildcard address. The wildcard IP address is useful for applications that bind Internet domain sockets on multihomed hosts. If an application on a mul...
Ionosphere asked 1/8, 2011 at 3:55

2

Solved

If I have a socket file descriptor connected (either by connect or by bind), type SOCK_STREAM, is it possible to get the remote address / IP address? I need to do this within a function where I do...
Colour asked 22/1, 2011 at 19:42

4

Solved

I am using berkeley sockets and TCP (SOCK_STREAM sockets). The process is: I connect to a remote address. I send a message to it. I receive a message from it. Imagine I am using the following ...
Wallsend asked 6/12, 2010 at 1:37

2

Solved

I want to account for a possible scenario where clients of my TCP/IP stream socket service send data to my service faster than it manages to move the data to its buffers (I am talking about applica...
Helfand asked 15/1, 2011 at 16:53

5

Solved

I'm working my way through UNIX Network Programming Volume 1 by Richard Stevens and attempting to write a TCP Echo Client that uses the Telnet protocol. I'm still in the early stages and attempting...
1

© 2022 - 2024 — McMap. All rights reserved.