- Tcp Server functionality
This commit is contained in:
parent
f7756e2032
commit
49c581840a
4 changed files with 48 additions and 8 deletions
|
@ -15,10 +15,12 @@ namespace MudEngine.Networking
|
|||
public ClientSocket()
|
||||
{
|
||||
type = 0;
|
||||
used = false;
|
||||
}
|
||||
~ClientSocket()
|
||||
{
|
||||
type = 0;
|
||||
used = false;
|
||||
}
|
||||
public int Send(byte[] ba)
|
||||
{
|
||||
|
@ -52,6 +54,7 @@ namespace MudEngine.Networking
|
|||
sock.Close();
|
||||
sock.Dispose();
|
||||
type = 0;
|
||||
used = false;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
@ -63,5 +66,6 @@ namespace MudEngine.Networking
|
|||
public ProtocolType type;
|
||||
public IPAddress ip;
|
||||
public Socket sock;
|
||||
public bool used;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue