Re: Bind several ports to one socket
On 22 Jun, 14:46, Spoon <root@localhost> wrote:
Consider an app that expects UDP datagrams on two ports A and B.
Is it possible (in the sockets API) to create a single UDP socket that
will receive datagrams addressed either to port A or to port B?
Are you having difficulty handling two sockets?
- Re: network programming: how does s.accept() work?
... The program you contact at Google is a server. ... so, the server will usually assign a new port, say 56399, specifically ... connections to a server remain on the same port, ... sockets is what identifies them. ...
- Re: "C - like: THIS" pointer to a task type inside a task function
... clients through N sockets, using the SAME PORT. ... Each connection has a socket. ... reader queueing them and delivering each request per time to the ... Selectreturns list of sockets available to read without blocking. ...
- Re: Listening and Establish TCP connections on/from the same IP end po
... and accept client connections as well as be able to establish connections to ... The application needs to listen on a specific port because that's where the ... But it does not allow both sockets to actually _use_ that IP/port at the same time, nor would there be any reliable way to let that happen. ... Client ports are pretty much _never_ assigned according to protocol, and firewalls don't block inbound traffic based on the sender's port at all. ...
- Re: blocking sockets?
... The server handles requests and spawns a child process for every connection. ... If a client sends the text "foo" to the server, the server itself should try to make a connection with another service on port 4321. ... The parent process should still be listening on port 1234 if you have actually spawned a child process to read and write data from the remote client,. ... Non-blocking sockets. ...
- Re: security risk of having a long list of services in inetd
... for connections on certain internet sockets. ... the string 'ssh' means TCP port 22. ... But if there's no program sitting there listening on the port there's ...