예제 #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();
        }
예제 #2
0
 public ClientHandling(FowaService service, NetworkStream networstream)
 {
     _fowaService = service;
     Stream = networstream;
     _streamReader = new StreamReader(networstream);
 }