Compile multiple network backends into the binary and choose which one to use at runtime.

This makes it possible to share more code between the backends and also work around
bugs of certain backends on some (versions of) operating systems.
This commit is contained in:
Jan Vidar Krey
2010-02-10 21:57:27 +01:00
parent 6ac78e1a10
commit 896bbfcb5d
9 changed files with 446 additions and 382 deletions

View File

@@ -28,10 +28,6 @@
#define NET_EVENT_READ 0x0002
#define NET_EVENT_WRITE 0x0004
struct net_connection;
typedef void (*net_connection_cb)(struct net_connection*, int event, void* ptr);
struct net_connection
{
NET_CON_STRUCT_COMMON