Click here to Skip to main content
Click here to Skip to main content

Feed Relay Server

, 26 Sep 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
Relay server made using winsock, load tester to test relay server with multiple clients
<!-- Article Starts - DO NOT ADD HTML/BODY START TAGS-->

Sample Image - ActiveRelayServer.png

Load Tester

Data Feeder


Disconnected Server



What the article/code snippet does, why it's useful, the problem it solves etc. This is a very simple relay server created using mere 4 sockets. Out of which 2 sockets is for listening to incoming request and for outgoing request respectively. I am using this relay server for my stock application get feed from NSE and BSE and crunch the data accordingly.

Using the code

The incoming and outgoing port number can be configured easily.

// Const IncommingPortNumber = 9999 
// Const OutgoingPortNumber = 5555 

All client instance are controlled to execute for 5 minutes and close itself closing the connection.

Queries & Suggestion

Suggestions are welcomed at


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Technical Lead M.N.Dastur & Company Pvt Ltd.
India India
No Biography provided

Comments and Discussions

GeneralFeed from NSE and BSE Pinmemberpkgvrpdm22-Nov-07 23:57 
GeneralRe: Feed from NSE and BSE PinmemberSandeepan9-Mar-08 21:19 
I guess its too delayed reply...

1st Question : The NSE and BSE data feed eas recevied directly from NSE and BSE via an agreement with our company.

2nd Question : Its based of TCP/IP connection dedicated leased line between NSE and BSE. Well it is under VPN but not aware if the interface h/w is x.25 eiconcard.

Thanks Sandeepan
GeneralRe: Feed from NSE and BSE Pinmembermgjanardhanan27-Oct-09 19:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150414.1 | Last Updated 26 Sep 2006
Article Copyright 2006 by Sandeepan
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid