Top "Network-programming" questions

Programming associated with creating and managing networks as well as adding network connectivity to a (set of) programs.

Why is it impossible, without attempting I/O, to detect that TCP socket was gracefully closed by peer?

As a follow up to a recent question, I wonder why it is impossible in Java, without attempting reading/writing …

java sockets tcp network-programming
How to get subnet mask using .net?

I want to get client subnet mask using c#. How can I get it?

c# network-programming ip subnet
What is "backlog" in TCP connections?

Below, you see a python program that acts as a server listening for connection requests to port 9999: # server.py import …

python sockets tcp network-programming udp
How to fake source ip-address of a udp-packet?

Think about the following: Your ISP offers you a dynamic ip-address (for example 123.123.123.123). My question is simple (the answer may …

networking network-programming ip-address network-protocols
What would cause UDP packets to be dropped when being sent to localhost?

I'm sending very large (64000 bytes) datagrams. I realize that the MTU is much smaller than 64000 bytes (a typical value is …

java network-programming udp
C++ Boost Asio Simple Chat Tutorial

I've been reading Boost Asio's Tutorials (Official website). But I found them a pain in the neck! Is There a …

c++ boost network-programming boost-asio
Get a machines MAC address on the local network from its IP in C#

I am trying write a function that takes a single IP address as a parameter and queries that machine on …

c# network-programming ip port mac-address
Which book(s) to learn sockets programming and TCP network communication?

I will do a few small projects over the next few months and need some books (preferably) or URLs to …

sockets tcp network-programming scada
how wireshark marks some packets as "tcp segment of a reassembled pdu"

I opened a pcap in wireshark and it displays a lot of packets as "tcp segment of a reassembled pdu". …

network-programming wireshark packet-capture tcpdump wireshark-dissector