Click here to Skip to main content
Licence CPOL
First Posted 26 Sep 2006
Views 13,518
Bookmarked 11 times

Feed Relay Server

By | 26 Sep 2006 | Article
Relay server made using winsock, load tester to test relay server with multiple clients

Sample Image - ActiveRelayServer.png

Load Tester

Data Feeder

Clients

Disconnected Server

 

Introduction

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 sandeepan.kundu@gmail.com/+919910414559.

License

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

About the Author

Sandeepan

Technical Lead
M.N.Dastur & Company Pvt Ltd.
India India

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralFeed from NSE and BSE Pinmemberpkgvrpdm22:57 22 Nov '07  
GeneralRe: Feed from NSE and BSE PinmemberSandeepan20:19 9 Mar '08  
GeneralRe: Feed from NSE and BSE Pinmembermgjanardhanan18:27 27 Oct '09  

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.

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