]> git.tdb.fi Git - libs/net.git/log
libs/net.git
13 years agoDon't crash on errors without verbose mode
Mikko Rasa [Mon, 31 Oct 2011 14:33:56 +0000 (16:33 +0200)]
Don't crash on errors without verbose mode

13 years agoFix some header names
Mikko Rasa [Wed, 5 Oct 2011 08:30:41 +0000 (11:30 +0300)]
Fix some header names

13 years agoAdd an example of Http::Server usage
Mikko Rasa [Wed, 10 Aug 2011 19:31:42 +0000 (22:31 +0300)]
Add an example of Http::Server usage

13 years agoMake httpget handle socket errors
Mikko Rasa [Wed, 10 Aug 2011 19:31:26 +0000 (22:31 +0300)]
Make httpget handle socket errors

13 years agoDon't generate a duplicate signal when the connection is closed
Mikko Rasa [Wed, 10 Aug 2011 19:30:52 +0000 (22:30 +0300)]
Don't generate a duplicate signal when the connection is closed

13 years agoFix storage order of InetAddr::addr
Mikko Rasa [Wed, 10 Aug 2011 19:30:29 +0000 (22:30 +0300)]
Fix storage order of InetAddr::addr

13 years agoFix URL regex
Mikko Rasa [Wed, 10 Aug 2011 19:18:46 +0000 (22:18 +0300)]
Fix URL regex

13 years agoChange Client::signal_socket_error parameter to reference
Mikko Rasa [Wed, 10 Aug 2011 19:18:26 +0000 (22:18 +0300)]
Change Client::signal_socket_error parameter to reference

13 years agoAdd example of Http::Client usage
Mikko Rasa [Wed, 10 Aug 2011 18:44:40 +0000 (21:44 +0300)]
Add example of Http::Client usage

13 years agoStore pending responses in a map
Mikko Rasa [Wed, 10 Aug 2011 18:42:48 +0000 (21:42 +0300)]
Store pending responses in a map

13 years agoOne more exception change
Mikko Rasa [Wed, 10 Aug 2011 18:41:09 +0000 (21:41 +0300)]
One more exception change

13 years agoMerge branch 'http-master'
Mikko Rasa [Wed, 10 Aug 2011 18:14:42 +0000 (21:14 +0300)]
Merge branch 'http-master'

Conflicts:
.gitignore
Build

13 years agoPrepare for assimilating msphttp
Mikko Rasa [Wed, 10 Aug 2011 18:11:56 +0000 (21:11 +0300)]
Prepare for assimilating msphttp

13 years agoPrepare for assimilation into mspnet http-master
Mikko Rasa [Wed, 10 Aug 2011 18:07:48 +0000 (21:07 +0300)]
Prepare for assimilation into mspnet

13 years agoChange listen address construction
Mikko Rasa [Wed, 10 Aug 2011 18:07:08 +0000 (21:07 +0300)]
Change listen address construction

13 years agoUse maputils.h
Mikko Rasa [Wed, 10 Aug 2011 18:05:52 +0000 (21:05 +0300)]
Use maputils.h

13 years agoStreamListenSocket renamed as StreamServerSocket
Mikko Rasa [Wed, 10 Aug 2011 18:05:29 +0000 (21:05 +0300)]
StreamListenSocket renamed as StreamServerSocket

13 years agoException changes
Mikko Rasa [Wed, 10 Aug 2011 18:05:12 +0000 (21:05 +0300)]
Exception changes

13 years agoPass an exception to signal_socket_error instead of error code
Mikko Rasa [Wed, 10 Aug 2011 18:03:38 +0000 (21:03 +0300)]
Pass an exception to signal_socket_error instead of error code

13 years agoSocket::close was removed
Mikko Rasa [Wed, 10 Aug 2011 18:03:05 +0000 (21:03 +0300)]
Socket::close was removed

13 years agoAdd an overload for resolve that takes host and service separately
Mikko Rasa [Wed, 10 Aug 2011 17:49:39 +0000 (20:49 +0300)]
Add an overload for resolve that takes host and service separately

13 years agoAdd back get_port functions to InetAddr and Inet6Addr
Mikko Rasa [Wed, 10 Aug 2011 16:30:16 +0000 (19:30 +0300)]
Add back get_port functions to InetAddr and Inet6Addr

13 years agoCreate wildcard addresses if * is passed as host
Mikko Rasa [Wed, 10 Aug 2011 16:28:39 +0000 (19:28 +0300)]
Create wildcard addresses if * is passed as host

13 years agoAdd missing virtual keywords
Mikko Rasa [Wed, 10 Aug 2011 15:18:27 +0000 (18:18 +0300)]
Add missing virtual keywords

13 years agoRename SockAddr::from_sys to new_from_sys
Mikko Rasa [Wed, 10 Aug 2011 15:12:04 +0000 (18:12 +0300)]
Rename SockAddr::from_sys to new_from_sys

13 years agoDon't let exceptions from the socket fall out of Client::data_available
Mikko Rasa [Sun, 7 Aug 2011 08:45:44 +0000 (11:45 +0300)]
Don't let exceptions from the socket fall out of Client::data_available

13 years agoAdd linefeeds to error response content
Mikko Rasa [Sat, 6 Aug 2011 20:59:00 +0000 (23:59 +0300)]
Add linefeeds to error response content

13 years agoDrop Id tags and copyright notices from source files
Mikko Rasa [Sat, 6 Aug 2011 20:57:25 +0000 (23:57 +0300)]
Drop Id tags and copyright notices from source files

13 years agoStyle update: spaces around assignments
Mikko Rasa [Sat, 6 Aug 2011 20:53:52 +0000 (23:53 +0300)]
Style update: spaces around assignments

13 years agoPass an exception to signal_connect_finished
Mikko Rasa [Sat, 6 Aug 2011 21:02:13 +0000 (00:02 +0300)]
Pass an exception to signal_connect_finished

13 years agoMove signal_connect_finished to ClientSocket
Mikko Rasa [Sat, 6 Aug 2011 21:00:09 +0000 (00:00 +0300)]
Move signal_connect_finished to ClientSocket

13 years agoThere's no good reason to prefer WASConnect over connect
Mikko Rasa [Sat, 6 Aug 2011 20:40:33 +0000 (23:40 +0300)]
There's no good reason to prefer WASConnect over connect

13 years agoFix windows build
Mikko Rasa [Sat, 6 Aug 2011 20:40:22 +0000 (23:40 +0300)]
Fix windows build

13 years agoDon't consider calling poll_connect without a connection attempt an error
Mikko Rasa [Sat, 6 Aug 2011 20:39:00 +0000 (23:39 +0300)]
Don't consider calling poll_connect without a connection attempt an error

13 years agoCorrect poll usage
Mikko Rasa [Sat, 6 Aug 2011 20:32:26 +0000 (23:32 +0300)]
Correct poll usage

13 years agoMove some functions around a bit
Mikko Rasa [Sat, 6 Aug 2011 20:30:00 +0000 (23:30 +0300)]
Move some functions around a bit

13 years agoAdd ClientSocket and ServerSocket abstractions
Mikko Rasa [Sat, 6 Aug 2011 20:17:41 +0000 (23:17 +0300)]
Add ClientSocket and ServerSocket abstractions

13 years agoAdd netcat example
Mikko Rasa [Sat, 6 Aug 2011 16:24:36 +0000 (19:24 +0300)]
Add netcat example

13 years agoHide platform specific parts of socket addresses
Mikko Rasa [Sat, 6 Aug 2011 16:23:26 +0000 (19:23 +0300)]
Hide platform specific parts of socket addresses

13 years agoHide AF_* constants from the public header
Mikko Rasa [Sat, 6 Aug 2011 12:03:04 +0000 (15:03 +0300)]
Hide AF_* constants from the public header

13 years agoHide platform details of Socket behind pimpl
Mikko Rasa [Sat, 6 Aug 2011 09:14:36 +0000 (12:14 +0300)]
Hide platform details of Socket behind pimpl

13 years agoOne more header update
Mikko Rasa [Sat, 6 Aug 2011 09:14:10 +0000 (12:14 +0300)]
One more header update

13 years agoRemove the now-obsolete check_state method
Mikko Rasa [Fri, 5 Aug 2011 22:00:30 +0000 (01:00 +0300)]
Remove the now-obsolete check_state method

13 years agoRemove the close method from Socket, making it more RAII
Mikko Rasa [Fri, 5 Aug 2011 21:52:45 +0000 (00:52 +0300)]
Remove the close method from Socket, making it more RAII

13 years agoDon't close socket on Communicator error
Mikko Rasa [Fri, 5 Aug 2011 21:50:08 +0000 (00:50 +0300)]
Don't close socket on Communicator error

13 years agoException changes
Mikko Rasa [Thu, 4 Aug 2011 22:57:25 +0000 (01:57 +0300)]
Exception changes

13 years agoUpdate handle types
Mikko Rasa [Thu, 4 Aug 2011 22:46:00 +0000 (01:46 +0300)]
Update handle types
Derive Socket from EventObject

13 years agoUse maputils
Mikko Rasa [Thu, 4 Aug 2011 22:44:12 +0000 (01:44 +0300)]
Use maputils

13 years agoUpdate TimeDelta to timeval conversion
Mikko Rasa [Thu, 4 Aug 2011 22:42:33 +0000 (01:42 +0300)]
Update TimeDelta to timeval conversion

13 years agoHeader changes
Mikko Rasa [Thu, 4 Aug 2011 22:41:48 +0000 (01:41 +0300)]
Header changes

13 years agoRequire mspcore since the io library was integrated into it
Mikko Rasa [Thu, 4 Aug 2011 22:39:05 +0000 (01:39 +0300)]
Require mspcore since the io library was integrated into it

13 years agoComment changes
Mikko Rasa [Tue, 2 Aug 2011 08:36:09 +0000 (11:36 +0300)]
Comment changes

13 years agoStyle update: reorder class members
Mikko Rasa [Mon, 1 Aug 2011 12:17:45 +0000 (15:17 +0300)]
Style update: reorder class members

13 years agoStyle update: spaces around assignments
Mikko Rasa [Mon, 1 Aug 2011 11:36:50 +0000 (14:36 +0300)]
Style update: spaces around assignments

13 years agoStyle update: remove alignment
Mikko Rasa [Mon, 1 Aug 2011 11:36:15 +0000 (14:36 +0300)]
Style update: remove alignment

13 years agoDrop Id tags and copyright notices
Mikko Rasa [Mon, 1 Aug 2011 11:32:02 +0000 (14:32 +0300)]
Drop Id tags and copyright notices

13 years agoConvert svn:ignore to .gitignore
Mikko Rasa [Mon, 1 Aug 2011 09:35:10 +0000 (12:35 +0300)]
Convert svn:ignore to .gitignore

13 years agoConvert svn:ignore to .gitignore
Mikko Rasa [Mon, 1 Aug 2011 09:21:27 +0000 (12:21 +0300)]
Convert svn:ignore to .gitignore

13 years agoAdd function to check if handshake is done
Mikko Rasa [Wed, 6 Apr 2011 07:10:43 +0000 (07:10 +0000)]
Add function to check if handshake is done

13 years agoAdd IPv6 support
Mikko Rasa [Sat, 15 Jan 2011 18:09:48 +0000 (18:09 +0000)]
Add IPv6 support

13 years agoAdd support for setting socket timeouts
Mikko Rasa [Mon, 13 Dec 2010 11:09:52 +0000 (11:09 +0000)]
Add support for setting socket timeouts

13 years agoReplace the deprecated install_headers statement with a headers component
Mikko Rasa [Mon, 13 Dec 2010 10:58:05 +0000 (10:58 +0000)]
Replace the deprecated install_headers statement with a headers component

14 years agoAdd destructor to Protocol::PacketDef
Mikko Rasa [Sun, 13 Dec 2009 14:22:47 +0000 (14:22 +0000)]
Add destructor to Protocol::PacketDef

15 years agoAdd functions for parsing and building URIs and query strings
Mikko Rasa [Sat, 8 Aug 2009 21:41:01 +0000 (21:41 +0000)]
Add functions for parsing and building URIs and query strings
Use the new parse_url function in Request::from_url
Add urlencode_plus function
Support POST method
Three different encoding levels for urlencode
Add Message::has_header to check for header existence without exceptions

15 years agoFix a comparison operator on win32
Mikko Rasa [Sun, 5 Jul 2009 20:37:08 +0000 (20:37 +0000)]
Fix a comparison operator on win32

15 years agoSupport handling requests asynchronously
Mikko Rasa [Sun, 5 Jul 2009 20:36:37 +0000 (20:36 +0000)]
Support handling requests asynchronously
Add urlencode/urldecode functions

15 years agoAdd protocol framework
Mikko Rasa [Mon, 2 Mar 2009 09:11:08 +0000 (09:11 +0000)]
Add protocol framework
Set event mask in StreamSocket when connect finishes instantly

15 years agoAdd Server class
Mikko Rasa [Thu, 25 Dec 2008 08:44:19 +0000 (08:44 +0000)]
Add Server class
Get rid of the X-Port header and put port in Host, as per HTTP spec
Support for User-Agent header in Client
Move header parsing to Message
Normalize header names to make each word start with uppercase letter

15 years agoRename data to content in Message
Mikko Rasa [Wed, 24 Dec 2008 07:26:59 +0000 (07:26 +0000)]
Rename data to content in Message
Make Client::use_event_dispatcher more robust
Make the Status enum values all uppercase
Move the typedef of HeaderMap inside Message
Rename misc.* to version.*
Add a user_data field to Message and copy it rom request to response in Client
Update class member ordering

15 years agoClear connected flag in Socket::close
Mikko Rasa [Mon, 15 Dec 2008 12:05:14 +0000 (12:05 +0000)]
Clear connected flag in Socket::close

16 years agoInitial revision
Mikko Rasa [Sun, 16 Nov 2008 12:42:29 +0000 (12:42 +0000)]
Initial revision

16 years agoCreate standard directories
System Administrator [Sun, 16 Nov 2008 12:36:42 +0000 (12:36 +0000)]
Create standard directories

16 years agoAdd WSAEventSelect to DatagramSocket
Mikko Rasa [Thu, 13 Nov 2008 12:47:45 +0000 (12:47 +0000)]
Add WSAEventSelect to DatagramSocket
Remove outdated get_initial_events

16 years agoReorder class members
Mikko Rasa [Wed, 20 Aug 2008 20:17:13 +0000 (20:17 +0000)]
Reorder class members
Update svn:ignore

16 years agoUse SystemError at appropriate places
Mikko Rasa [Fri, 27 Jun 2008 06:16:42 +0000 (06:16 +0000)]
Use SystemError at appropriate places

16 years agoInitial revision
Mikko Rasa [Mon, 28 Apr 2008 14:23:18 +0000 (14:23 +0000)]
Initial revision

16 years agoCreate standard directories
System Administrator [Sun, 27 Apr 2008 13:10:38 +0000 (13:10 +0000)]
Create standard directories