Questions tagged [Network programming] (31)

1
answer

What could be the problem related to the Linux server?

Test http server written using the functions from the header file sys/socket, sys/epoll and related. In General, the design is decorated as the listening socket s=socket(PF_INET,SOCK_STREAM,IPPROTO_TCP) is added to the epoll set c mask EPOLLIN|EPOLLET. When epoll_wait returns an event on this socket, the accept() returns a ...
aurelia.Bernha asked April 3rd 20 at 18:19
3
answers

Why is crash servers on Linux?

Hello. I don't know what to do, stand on your head or believe in magic? Test the server written in the Berkeley socket + event-epoll(edge-triggered), non-blocking sockets, the requests are processed in a single thread, the core of the linux system-4.9.0-8-686-pae. While fighting with a problem, the entire code section, rema...
haleigh_Lueilwi asked April 2nd 20 at 17:38
1
answer

How to specify the address of the socket?

In General, asked in College to do computer chat, and socket themselves, we did not pass, the question is: How to fill out the addresses of the sockets for the correct operation of chat through the Internet. Server: Client:
Dario93 asked April 1st 20 at 18:00
0
answer

Socket and Python how to accelerate the information received from the server?

Good day! Faced not clear (to me) problem. Describe briefly the essence : There is a certain application (read server) that opens and listens a port, performs the database query returns a response. There is a task : to write a script that will send a request to this application and receive (handle) the answer. The script t...
Gerson_Wisozk asked March 31st 20 at 21:57
1
answer

Books on network programming in Java?

Advise books on network programming in Java
Joanny_Nolan asked March 27th 20 at 12:56
1
answer

Where can I find materials to work with snmp in Python?

Advise suitable lessons, manuals, books on snmp Protocol (preferably for Python). Network is guides and lessons some scraps of information. Thanks in advance!
adolfo_Metz2 asked March 12th 20 at 00:20
2
answers

Why not work a simple example from the library easysnmp?

So I decided to understand the SNMP Protocol. What's what and so on. After reading a bit of theory and knowing the basics quickly decided to begin to practice on Python. But something went wrong: not running even a simple example from official documentation.from easysnmp import Session # Create an SNMP session to be used f...
daisy11 asked March 12th 20 at 00:20
2
answers

Book on the basics of programming?

Already have experience programming (js, c, assembler). But I would like to expand their horizons and better understand the principles of other languages. Recommend a good book. The book should answer the questions what is a static class, virtual method, polymorphism, etc., the basic principles of design. The difference in ...
2
answers

The order in which the bytes of the recorded MAC address in the ethernet packet?

Hello! I am interested in the question of whether to translate the MAC address extracted from the ethernet packet from network order to the local byte order? Or he's listed as 6 separate single-byte numbers? Thanks for the replies. I use pcap. Code is something like thistypedef unsigned short u16; u16 extract_16bits(const ...
Brook.Jaco asked September 25th 19 at 15:41
2
answers

How best to determine that the received packet came in via SMTP?

Good day! Write a sniffer packages. The idea is this: a sniffer intercepts any packets with Pcap. Next you need to determine what Protocol ispolzovalsya. For example, SMTP. Is there any alternative method of identification Protocol, in addition to checking on which port the packets came in?
Myrtle.Torphy asked September 23rd 19 at 16:29