Commit Graph

40 Commits (a00a7f76bc8bbc8a0174bfda7b7962e981e984df)

Author SHA1 Message Date
Matthew Wild a00a7f76bc net.server_event: Add conn:setoption() to set options on the socket 16 years ago
Matthew Wild 20a9ef3561 net.server_event: Add server.hook_signal(signal_num, handler) to wrap libevent's signal-catching interface 16 years ago
Matthew Wild 894d946691 net.server_event: Add properties like _ip and _port to server objects too 16 years ago
Matthew Wild c5377ba75f net.server_event: Add :serverport() method to be compatible with old API 16 years ago
Matthew Wild b0055aa7b5 net.server_event: Load ssl/socket libraries if not already available 16 years ago
Matthew Wild 997f8c16d6 net.server_event: Add get_backend() method 16 years ago
Matthew Wild 0ec240d5e3 Rename closeallservers to closeall in the public API (same as net.server_select) and expose setquitting 16 years ago
Matthew Wild 7afd141b85 net.server_event: Add setquitting() function to be compatible with net.server_select 16 years ago
Matthew Wild c990578ae0 net.server_event: Fix closeallservers() to work correctly after the giant refactorizification 16 years ago
Matthew Wild 0e534e4ba5 net.server_event: Return "quitting" on loop exit to be compatible with net.server_select, and give Prosody a way to know why the loop broke 16 years ago
Matthew Wild c0780f8d84 net.server_select, net.server_event: Convert to unix line endings from Windows 16 years ago
Matthew Wild 1ecc27bdca net.server_event: Port fix in 2dc9bbf25447 to libevent-based backend 16 years ago
Matthew Wild 546954e85c net.server_event: Add addclient/wrapclient compatible with server_select, DNS and s2s should now work with libevent \o/ 16 years ago
Matthew Wild 422a717900 net.server_event: tostring() some debug logging parameters 16 years ago
Matthew Wild 7dae521ba5 net.server_event: Add set_send() for compatibility with server_select 16 years ago
Matthew Wild 944ab8a84e net.server_event: Hide starttls function when the connection is not SSL-enabled 16 years ago
Matthew Wild e6d079f887 net.server_event: Count the number of client connections *upwards* :) 16 years ago
Matthew Wild 05348c61f3 net.server_handler: Add stub handlers as fallbacks for those listeners don't implement 16 years ago
Matthew Wild df4d4cd445 net.server_event: Fix to make ontimeout() listener callback work 16 years ago
Matthew Wild 2b683fc8e6 net.server_event: Comment accidentally uncommented vdebug() 16 years ago
Matthew Wild 0f840b5fe7 net.server_event: Handle and ignore 'wantread' error from receive(), treat as a timeout 16 years ago
Matthew Wild 26277a7950 net.server_event: Remove premature non-optimisation 16 years ago
Matthew Wild 07f5e5f4c8 net.server_event: Fix moved line caused by Mercurial's crecord and my selective commits 16 years ago
Matthew Wild 3fe8e55754 net.server_event: Obey nowriting/nointerface for locks in interface methods 16 years ago
Matthew Wild 4d67d89061 net.server_event: Use conn property for send/receive instead of caching, fixes trying to use original socket after SSL-wrapping 16 years ago
Matthew Wild e2d6a0c9c7 net.server_event: Set startsslcallback property to nil when we're done handshaking, otherwise we keep trying to repeat the handshake 16 years ago
Matthew Wild e6249e1a9e net.server_event: Add set_sslctx() method to connections 16 years ago
Matthew Wild 9ad7e92bf9 net.server_event: conn.usingssl -> conn._usingssl 16 years ago
Matthew Wild d506a991da net.server_event: Use correct listener callbacks 16 years ago
Matthew Wild 9cb25f6151 net.server_event: Small whitespace fixes 16 years ago
Matthew Wild 14cd16dda7 net.server_event: Correct a few instances of .sslctx to ._sslctx 16 years ago
Matthew Wild 7ae00da044 net.server_event: Call connection's onconnect, no need to pass closures around now 16 years ago
Matthew Wild 08ea9601ce net.server_event: Use connection id in all relevant logging 16 years ago
Matthew Wild 920c067b7f net.server_event: Define id property for connection objects, to aid logging 16 years ago
Matthew Wild d120550858 net.server_event: Define vdebug function for convenience 16 years ago
Matthew Wild 3637339b38 net.server_event: Change to new standard addserver() syntax 16 years ago
Matthew Wild 27032e6955 net.server_event: Export base as event_base 16 years ago
Matthew Wild 0c4e6e38e7 net.server_event: Comment overly verbose log message 16 years ago
Matthew Wild 83334e8745 net.server_event: Remove redundant getid() function 16 years ago
Matthew Wild b149c783f2 net.server_event: Initial commit of server_event.lua. Don't get too excited, it's not used at all yet, and is still incomplete :) 16 years ago