All pastes #1400108 Raw Edit

Miscellany

public text v1 · immutable
#1400108 ·published 2009-04-22 20:16 UTC
rendered paste body
module siege.modules.phobos.network.network;

version(Win32)
{
	pragma(lib,"ws2_32.lib");
	private
	{
		import std.socket;
        	import std.socketstream;
	}	
}
else
{
	version(linux)
	{
		private
        	{
                	import std.socket;
                	import std.socketstream;
        	}
	}
	else
	{
		/**** Add the link librarie / modules of other plataforms (future PSP compatibilitie and others) ****/
		//
		//
		//	version(PSP)
		//	{
		//	}
		//	else
		//	{
		//		assert(0,"Sockets not implemented on this plataform");
		//	}
		//
		//
		//
		//
	}
}

private
{
}

class NetworkTCPModule: Socket
{
	this()
	{
		super();
	}
}

class NetworkUDPModule: SocketStream
{
	this(Socket sock)
	{
		super(sock);
	}
}