[Solved] Why does c++ standard still not include file system and networking? [closed]

Why does c++ standard still not include file system and networking? Do you have any clue, why the C++ standard committee is not even thinking about adding such an essential features in the future? No, mainly because that is not true!There are ongoing efforts to define standard support for both. Personally, I don’t see why … Read more

[Solved] what is the meaning of this python code:

The format-string “<L” in the expression struct.pack(“<L”,self.src) means that pack interpretes the value in self.src as little-endian ordered unsigned long value. The endianess is a convention, which determines in which direction a sequence of bits are interpreted as a number: from (Big-endian) left to right, or from (Little-endian) right to left. Afterwards the unsigned long … Read more

[Solved] How to get my external ip (primary interface) without internet connection, without eth0 and without any hardcoded constnts using C [closed]

If you just want to discover the default adapter’s assigned IP address, e.g. 192.168.0.237, call getifaddrs and enumerate each address. This is the same list of adapters that ifconfig would normally display with associated information for gateway and netmask. Filter out the ones that are flagged as IFF_LOOPBACK or don’t have IFF_UP. Some sample code … Read more

[Solved] IPv4 Network ID & Host ID

Q1: Basically, yes. You should note though that there are different kinds of network addresses such as IP addresses, subnet addresses/prefixes, or MAC addresses. The exact meaning of each term depends on context. Q2: If the IP address/mask is 184.19.39.34/16 then 184.19.0.0/16 is the subnet address. 39.34 is the host part of the IP address … Read more

[Solved] differences of n in TCP and UDP?

Both read and write return the number of bytes read/written, or -1 on error. Note, that to be able to invoke read/write on a UDP socket (or, more generally, on a datagram socket) you have to invoke connect on it beforehand to specify the peer address. 1 solved differences of n in TCP and UDP?

[Solved] python while true wierd error [closed]

The issue is that your indentation is incorrect. By indentation I mean Leading whitespace (spaces and tabs) at the beginning of a logical line is used to compute the indentation level of the line, which in turn is used to determine the grouping of statements This link is helpful for you to see why indentation … Read more

[Solved] Writing drivers for Windows [closed]

Indeed, this would be too broad. Driver writing is a complicated thing which requires a good understanding of how a computer and the OS works. Also, C# (and .NET itself) indeed isn’t available in Kernel Mode, so C/C++ is the preferred way. Although theoretically any unmanaged language (like Pascal) could do, I haven’t heard of … Read more

[Solved] What is needed to make a packet capture system? [closed]

What you’re trying to develop already exists for many years, and with multiple implementations: Wireshark TCPDump. Both applications can write the packets in the PCAP format. Bear in mind that these applications require root access and privileges as they ask the kernel to fork the incoming packets to your application. 6 solved What is needed … Read more