Home » U++ Library support » U++ MT-multithreading and servers » Non-Blocking socket example
Re: Socket non block [message #9119 is a reply to message #9116] |
Wed, 18 April 2007 10:40 |
fallingdutch
Messages: 258 Registered: July 2006
|
Experienced Member |
|
|
You can use UPP-Sockets nonblocking
you need the Package "Web" and "Web/SSL" if you need SSL support
Then these two functions create sockets for you.
bool ServerSocket(Socket& socket, int port, bool nodelay = true, int listen_count = 5, bool is_blocking = true);
bool ClientSocket(Socket& socket, const char *host, int port, bool nodelay = true, dword *my_addr = NULL, int timeout = DEFAULT_CONNECT_TIMEOUT, bool is_blocking = true);
Set "is_blocking" to false.
Socket::Wait is a call to select
Bas
|
|
|
|
|
Non-Blocking socket example
|
|
|
Re: Socket non block
By: lundman on Wed, 18 April 2007 09:33
|
|
|
Re: Socket non block
|
|
|
Socket example?
By: lectus on Thu, 09 August 2007 20:59
|
|
|
Re: Socket example?
By: bonami on Fri, 10 August 2007 04:55
|
|
|
Re: Socket example?
By: lectus on Fri, 10 August 2007 05:57
|
|
|
Re: Socket example?
By: bonami on Fri, 10 August 2007 08:16
|
|
|
Re: Socket example?
By: lectus on Mon, 13 August 2007 16:58
|
|
|
Re: Socket example?
By: fudadmin on Mon, 13 August 2007 18:34
|
|
|
Re: Socket example?
By: lectus on Mon, 13 August 2007 21:00
|
|
|
Re: Socket example?
By: fudadmin on Mon, 13 August 2007 22:52
|
|
|
Re: Socket example?
By: mezise on Mon, 13 August 2007 23:32
|
|
|
Re: Socket example?
By: lectus on Tue, 14 August 2007 04:06
|
|
|
Re: Socket example?
By: fudadmin on Wed, 15 August 2007 04:51
|
|
|
Re: Socket example?
|
|
|
Re: Socket example?
By: lectus on Wed, 15 August 2007 20:33
|
|
|
Re: Socket example?
By: fudadmin on Thu, 16 August 2007 08:12
|
|
|
Re: Socket example?
By: mirek on Fri, 17 August 2007 19:21
|
|
|
Re: Socket example?
By: fudadmin on Sun, 19 August 2007 14:23
|
|
|
Re: Socket example?
By: lectus on Sun, 19 August 2007 17:23
|
|
|
Re: Socket example?
By: fudadmin on Mon, 20 August 2007 01:58
|
|
|
Re: Socket example?
By: fudadmin on Mon, 20 August 2007 21:24
|
Goto Forum:
Current Time: Mon Jun 10 13:19:46 CEST 2024
Total time taken to generate the page: 0.01264 seconds
|