Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #6064
| Subject | Re: Socket limits |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| From | Alan Adams <alan@adamshome.org.uk> |
| Date | 2020-04-22 12:59 +0100 |
| Message-ID | <39d72c6558.Alan.Adams@ArmX6.adamshome.org.uk> (permalink) |
| References | <e26e486458.Alan.Adams@ArmX6.adamshome.org.uk> <r7ld1j$fn3$1@dont-email.me> <6ea3b76458.Alan.Adams@ArmX6.adamshome.org.uk> |
| Organization | Orpheus Internet Services |
In message <6ea3b76458.Alan.Adams@ArmX6.adamshome.org.uk>
Alan Adams <alan@adamshome.org.uk> wrote:
> In message <r7ld1j$fn3$1@dont-email.me>
> druck <news@druck.org.uk> wrote:
>> On 20/04/2020 19:25, Alan Adams wrote:
>>> Each client has 3 sockets - one to broadcast a request for the server, one
>>> to listen to incoming data, and one to send data to the server. The server
>>> uses one broadcast, and one listen, plus one send socket per client.
<SNIP>
I've now eliminated the unnecessary listen sockets.
>>> I think I can reduce my socket usage by creating the broadcast sockets
>>> when needed and deleting them afterwards. That will need some testing of
>>> course. It's not just the initial connection that uses them - if a
>>> connection drops or times out, the system attempts to reconnect
>>> automatically.
>> The clients broadcast socket can be created only when needed. Once
>> you've sent a broadcast to identify the server, you should be able to
>> reconnect to the same address after that.
I've tried deferering the creation of the broadcast socket until it's
needed, and i can't get it to work. Odd, because I'm using the same code,
just called at a different place.
I've tried running it on a different computer from the server and I can
see packets going through the switch, but the server doesn't record
anything as received.
The sender is saying the port and socket are the same as in the working
version, so I don't quite know what to look for next.
I guess my next step will be Wiresalmon and see what the packets actually
contain.
>> ---druck
--
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Socket limits Alan Adams <alan@adamshome.org.uk> - 2020-04-20 19:25 +0100
Re: Socket limits Paolo Fabio Zaino <p.zaino@zfpsystems.com> - 2020-04-20 16:03 -0700
Re: Socket limits druck <news@druck.org.uk> - 2020-04-21 00:59 +0100
Re: Socket limits Alan Adams <alan@adamshome.org.uk> - 2020-04-21 15:39 +0100
Re: Socket limits Alan Adams <alan@adamshome.org.uk> - 2020-04-22 12:59 +0100
csiph-web