예제 #1
0
 public CreatePhotoRequestHandler(
     INetworkCommunication networkCommunication,
     IFileCommunication fileCommunication
     )
 {
     _networkCommunication = networkCommunication;
     _fileCommunication    = fileCommunication;
 }
예제 #2
0
 public PhotoListResponseHandler(
     INetworkCommunication networkCommunication,
     IFileCommunication fileCommunication
     )
 {
     _networkCommunication = networkCommunication;
     _fileCommunication    = fileCommunication;
 }
예제 #3
0
    public GameClient(INetworkCommunication com)
    {
        m_data = new byte[256];

        m_com = com;
        m_com.Initialize();

        m_msgQueue = new MessageQueue();
    }
    public void AddNetworkCommunication(INetworkCommunication netCom, INetworkAddress address)
    {
        m_netComs.Add(netCom);

        if (address == null)
        {
            m_defaultSendCom = netCom;
        }
        else
        {
            m_addrToCom[address] = netCom;
        }
    }
예제 #5
0
 public GameServer(INetworkCommunication networkCommunication)
 {
     m_data      = new byte[256];
     ClientInfos = new ClientInfo[2];
     m_com       = networkCommunication;
 }
예제 #6
0
 public MessageCommunication(NetworkStream networkStream)
 {
     _networkCommunication = new NetworkCommunication(networkStream);
     _fileCommunication    = new FileCommunication(networkStream);
 }
예제 #7
0
 public CommentPhotoResponseHandler(
     INetworkCommunication networkCommunication
     )
 {
     _networkCommunication = networkCommunication;
 }
 public UserListResponseHandler(
     INetworkCommunication networkCommunication
     )
 {
     _networkCommunication = networkCommunication;
 }
 public LoginResponseHandler(INetworkCommunication networkStream)
 {
     _networkStream = networkStream;
 }
 public FileCommunication(NetworkStream stream)
 {
     _networkCommunication = new NetworkCommunication(stream); // TODO: DEPENDENCY INJECTION
 }
예제 #11
0
 public PhotoListRequestHandler(INetworkCommunication networkCommunication)
 {
     _networkCommunication = networkCommunication;
 }
 public CreateUserRequestHandler(INetworkCommunication networkStream)
 {
     _networkStream = networkStream;
 }
예제 #13
0
 public static void Initialize(INetworkCommunication networkCommunication)
 {
     MBNetwork.VirtualPlayers           = new VirtualPlayer[511];
     MBNetwork.NetworkPeers             = new List <ICommunicator>();
     MBNetwork.NetworkViewCommunication = networkCommunication;
 }
예제 #14
0
 public DelayedNetworkCommunication(INetworkCommunication com)
 {
     m_com = com;
     Updater.Create("DelayedNetworkCommunicationUpdater", Update);
 }
 public ErrorResponseHandler(INetworkCommunication networkCommunication)
 {
     _networkCommunication = networkCommunication;
 }
 public CommentListRequestHandler(INetworkCommunication networkCommunication)
 {
     _networkCommunication = networkCommunication;
 }
 public LoginRequestHandler(INetworkCommunication networkStream)
 {
     _networkStream = networkStream;
 }