In this article, we would discuss about Socket Programming.
Socket programming is a way of connecting two nodes on a network to communicate with each other.
A Socket is an End-Point of To and From (Bidirectional) communication link between two programs (Server Program and Client Program ) running on the same network.
A Server Socket Program running on a computer has a socket that bound to a Port Number on the same computer and listening to the client's incoming requests.
A Client Socket Program have to know the IP Address (Hostname) of the computer that the C# Server Socket Program resides and the Port Number assign for listening for client's request .
Communication protocol used for Socket Programming is TCP/IP ( Transmission Control Protocol/Internet protocol).
Code:
I have created a dll for the same which takes Input as IpAddress, PortNumber and Input Message and returns Response Message.
Variable Declaration:
Navision Code:
.Net dll Code:
Code Download Link: Socket Programming
That's it !!!
I hope this would help you a lot. Please also let me know your views.
Your valuable comments and feedback are appreciated.