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