- asyncsocketserverandclient.zip
- Code
- ALAZ Library.sln
- Demos
- CertificateCreation
- Chat
- ChatClient
- ChatConsoleServer
- ChatCryptService
- ChatServiceServer
- ChatSocketService
- Echo
- EchoConsoleClient
- EchoConsoleServer
- EchoCryptService
- EchoForm
- EchoFormClient
- EchoFormClientSynch
- EchoFormServer
- EchoSocketService
- EchoWindowsServiceServer
- Readme.txt
- Source
- ALAZ.SystemEx.NetEx
- ALAZ.SystemEx.NetEx.csproj
- ALAZ.SystemEx.NetEx.csproj.user
- ALAZLibSN.snk
- bin
- Debug
- Release
- ALAZ.SystemEx.dll
- ALAZ.SystemEx.NetEx.dll
- ALAZ.SystemEx.NetEx.pdb
- ALAZ.SystemEx.pdb
- Properties
- SocketsEx
- ALAZ.SystemEx
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Threading;
using System.Security.Cryptography;
using ALAZ.SystemEx.NetEx.SocketsEx;
namespace EchoFormServer
{
public partial class frmEchoServer : EchoFormTemplate.frmEchoForm
{
private SocketServer FEchoServer;
public frmEchoServer()
{
InitializeComponent();
}
private void frmEchoServer_Load(object sender, EventArgs e)
{
FEchoServer = new SocketServer( CallbackThreadType.ctWorkerThread, new EchoSocketService.EchoSocketService(FEvent), DelimiterType.dtMessageTailExcludeOnReceive, Encoding.GetEncoding(1252).GetBytes("ALAZ"), 1024 * 2, 1024 * 16);
}
private void AddListener()
{
FEchoServer.AddListener(String.Empty, new IPEndPoint(IPAddress.Any, 8092), EncryptType.etNone, CompressionType.ctNone, new EchoCryptService.EchoCryptService(), 50, 3);
}
private void cmdStart_Click(object sender, EventArgs e)
{
AddListener();
FEchoServer.Start();
Event("Started!");
Event("---------------------------------");
}
private void cmdStop_Click(object sender, EventArgs e)
{
FEchoServer.Stop();
Event("Stopped!");
Event("---------------------------------");
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.