예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="texter.Netw"/> class. This is for the server only.
 /// </summary>
 /// <param name="port">Port.</param>
 public JcNetworking(int port)
 {
     this.port = port;
     mytype    = ntype.SERVER;
     Server();
     jce         = new JcEncryption("2", "9", "8");
     timeoutTime = 10000;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="texter.Netw"/> class. This is for the client only.
 /// </summary>
 /// <param name="ip">Ip.</param>
 /// <param name="port">Port.</param>
 public JcNetworking(string ip, int port)
 {
     this.ip   = ip;
     this.port = port;
     mytype    = ntype.CLIENT;
     Client();
     jce         = new JcEncryption("2", "9", "8");
     timeoutTime = 10000;
 }
예제 #3
0
 /// <summary>
 /// Sets the encryption keys.
 /// </summary>
 /// <param name="s1">first key.</param>
 /// <param name="s2">second key.</param>
 /// <param name="s3">third key.</param>
 public void setEncryption(string s1, string s2, string s3)
 {
     jce = new JcEncryption(s1, s2, s3);
 }