-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Muhammed İKİNCİ edited this page Aug 27, 2017
·
12 revisions
Client Class
- SOCKET -> Current Client Socket
- LASTCONNECTIONTIME -> Client Connection Time
- CLOSEDSTATE -> Client Closing Status (Forcibly/Normal)
- PROCESS -> Is there process or no (1/0)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using fuzzyControl.Server;
using System.Net;
using System.Net.Sockets;
namespace Server
{
class Program
{
static void Main(string[] args)
{
ConsoleMessage message = new ConsoleMessage();
FuzzyServer Server = new FuzzyServer(new IPEndPoint(IPAddress.Any, 111));
Server.startListen();
if (Server.socketState)
{
Console.WriteLine("Started");
}
UserOperations op = new UserOperations();
User CurrentUser = op.Get("muhammed", "1357911");
message.Write(CurrentUser.permission, ConsoleMessage.MessageType.ERROR);
Console.ReadLine();
}
}
}