demux_sockety.hpp

00001 #line 605 "./lpsrc/flx_posix_demux.ipk"
00002 #ifndef __FLX_DEMUX_SOCKETY_H__
00003 #define __FLX_DEMUX_SOCKETY_H__
00004 #include <flx_demux_config.hpp>
00005 namespace flx { namespace demux {
00006 
00007 // Shouldn't this all be DEMUX_EXTERN? eh, doesn't happen on win32
00008 // we'll probably live.
00009 int create_listener_socket(int* io_port, int q_len);
00010 int create_async_listener(int* io_port, int q_len);
00011 int nice_accept(int listener, int* err);
00012 int nice_connect(const char* addr, int port);
00013 int async_connect(const char* addr, int port, int* finished, int* err);
00014 
00015 /* handy socket building blocks */
00016 
00017 int connect_sock(int s, const char* addr, int port);
00018 
00019 /* this could possibly do with NIC addr as well as port */
00020 int bind_sock(int s, int* io_port);
00021 
00022 int make_nonblock(int s);
00023 int make_linger(int s, int t);
00024 int set_tcp_nodelay(int s, int disable_nagle);
00025 int get_socket_error(int s, int* socket_err);
00026 
00027 }} // namespace demux, flx
00028 #endif
00029 

Generated on Thu May 29 14:24:57 2008 for Felix by  doxygen 1.5.5