Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding > Coding Tutorials
You last visited: Today at 14:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C#] [Guide] Introduction To Asynchronous Server Sockets.

Discussion on [C#] [Guide] Introduction To Asynchronous Server Sockets. within the Coding Tutorials forum part of the General Coding category.

Reply
 
Old   #1
 
Danial Eugen's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 171
Received Thanks: 68
[C#] [Guide] Introduction To Asynchronous Server Sockets.

Hello Guys!

First i wanna to introduce myself as i am a new member here also this is my first tutorial at EPVP.

Quote:
My name is , I am from UAE, and i am a C# programmer.


So let's begin our guide.


I. Purpose

The purpose of this tutorial is covering the following aspects

• What is the Asynchronous Calls ?.
• What is the difference between Synchronous and Asynchronous code ?.
• What is the Socket class ?.
• How to create a simple Socket Server



II. Requirements

This guide is written as a beginner guide; However, It is expected that you have a basic knowledge of C# and a working brain.

In order to be able to follow along, you will need:

• Brain.exe
• Microsoft Visual Studio 2008 or later (or equivalent)
• Will to learn



III. Explanations

I will start to explain what i was talking about previously so let's take

What is the Asynchronous Calls ?

•Simply Asynchronous(Non-Blocking) calls are made, but we don't have to wait for them to complete; therefore, the program can resume to the next function without suspending the execution .

What is the difference between Synchronous and Asynchronous code ?

•Unlike Asynchronous Calls, Synchronous(Blocking) program is executed line by line. Each time a function is called, program execution waits until that function returns before continuing to the next line of code.

So we can conclude that using an Asynchronous Call, We can prevent program freeze while doing some Time-Consuming functions.

What is the Socket class ?

•The Socket class allows you to perform both synchronous and asynchronous data transfer between clients and servers.


IV. Implementation

Now we are ready to get started. The first thing we will be doing is creating a new Console Application File->New->Project and giving it any name Ex. Asynchronous Socket Server

-Create a new class and give it a name, i will name mine Socket.cs

V. Conclusion

In the end, you should have learned how to create a socket for your server development also you know what is asynchronous calls and how to use them; However, this guide is just a first step to socket programming.

NOTE :
●If you want to download the solution and test it yourself, you will find it in the attachment.
●Feel free to correct me if i failed to explain something (This is my first tutorial so i may be explained something wrong).
●Also ask any question here and i will be helping you as far as i can...

Best regards.

Danial Eugen
.
Attached Files
File Type: zip AsynchronousSocket.zip (41.3 KB, 52 views)
Danial Eugen is offline  
Thanks
11 Users
Old 09/28/2012, 00:20   #2
 
Danial Eugen's Avatar
 
elite*gold: 0
Join Date: Sep 2012
Posts: 171
Received Thanks: 68
Does all the effort i made in this guide deserves only 0 comments !
Danial Eugen is offline  
Thanks
1 User
Old 01/04/2013, 21:13   #3
 
»Barney«'s Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 868
Received Thanks: 947
It helped me, so ...
»Barney« is offline  
Reply


Similar Threads Similar Threads
[Guide] Introduction to DLL Modding
09/18/2018 - Mabinogi Hacks, Bots, Cheats & Exploits - 8 Replies
Now in order to successfully mod a dll file you need to understand exactly how it is map'd out IDA Pro witch can be found on thepiratebay is great for something like this because it has a graph view that shows all subroutines that a specific line may call upon or transfer/read data to and from. it is important that when modding to only pay attention to an address when your switching from IDA Pro to OllyDBG, olydbg allows for quick modification. Pay attention to the name of the function...
[Guide] Asynchronous Socket Server [For Development Purpose]
12/14/2012 - CO2 Programming - 13 Replies
Hello Guys! Let's begin our guide. I. Purpose The purpose of this tutorial is covering the following aspects • What is the Asynchronous Calls ?. • What is the difference between Synchronous and Asynchronous code ?.
C# Asynchronous Sockets
10/13/2011 - SRO Coding Corner - 1 Replies
Ive found 2 methods in C# for Asynchronous Sockets. BeginConnect ConnectAsync What is the difference between this methods.
[GUIDE]EO Class Introduction
11/05/2009 - Eudemons Online - 0 Replies
Here is an introduction for each classes. I hope this is useful for beginners;). http://i590.photobucket.com/albums/ss347/PhoeNix4 Real/10_1.jpg A powerfull class, that is good in fights. They are good at magicranging, but not at melee. They are maybe one of the mighest classes in EO.



All times are GMT +1. The time now is 14:08.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.