• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • FMSLogo
  • Code
FMSLogo

FMSLogo Code

A Logo programming environment for Microsoft Windows

Brought to you by: david_costanzo
  • Summary
  • Files
  • Reviews
  • Support
  • Tickets ▾
    • Feature Requests
    • Bugs
    • Support Requests
  • Discussion
  • Code
Menu ▾ ▴
 
  • Browse Commits
  • Browse Files

Commit [r5498]  Maximize  Restore  History

Fix Bug #182; NETACCEPTON can now accept multiple connections (in serial)

The heart of the fix is to keep two distinct sockets for server connections, the listen socket and the connection (accept) socket. Before, the code only kept one socket and the listen socket was overwritten by the connection socket when accept() was called. By keeping track of the two sockets separately, NETACCEPTOFF can reliably cancel the listen(), which makes it possible to re-listen on the same port later.

An ancilliary change is to close the connection socket when the client initiates a half-close. This was required to not leak the connection socket by overwriting it when a new accept() call was made.

The logic still only supports one concurrent connection to the server, so multiple connections must be made in serial.

david_costanzo 2020-12-08

Browse code at this revision

Parent: [r5497]

Child: [r5499]

changed /logo/trunk/src/README.TXT
changed /logo/trunk/src/netwind.cpp
changed /logo/trunk/src/netwind.h
changed /logo/trunk/src/test/network.lgo
changed /logo/trunk/src/test/networkclient.pl
/logo/trunk/src/README.TXT Diff Switch to side-by-side view
Loading...
/logo/trunk/src/netwind.cpp Diff Switch to side-by-side view
Loading...
/logo/trunk/src/netwind.h Diff Switch to side-by-side view
Loading...
/logo/trunk/src/test/network.lgo Diff Switch to side-by-side view
Loading...
/logo/trunk/src/test/networkclient.pl Diff Switch to side-by-side view
Loading...
SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
mdb logo