Ejemplo n.º 1
0
        public MainWindow()
        {
            _metaData = new FowaMetaData
                            {
                                OnIncomingLoginMessageCallback = OnIncomingLoginMessage,
                                OnIncomingUserMessageCallback = OnIncomingUserMessage,
                                OnIncomingRegisterMessageeCallback = OnIncomingRegisterMessage
                            };

            _service = new FowaService(_metaData, 55555);
            _service.UserDisconnected += OnUserDiconnected;
            _userFriendService = new UserFriendsService();

            InitializeComponent();
            _service.StartServer();
        }
Ejemplo n.º 2
0
 public ClientHandling(FowaService service, NetworkStream networstream)
 {
     _fowaService = service;
     Stream = networstream;
     _streamReader = new StreamReader(networstream);
 }