Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Winsock or Alternatives for C/S Communication?

Status
Not open for further replies.

JAG14

Programmer
Sep 26, 2003
469
GB
Hi All,

I have a program that currently runs locally on each users system. I log in to the system remotely to change settings or adjust programming.
I want to build a Server program that will communicate with each of the Clients and adjust settings from a central location.
I've been researching Winsockets but I need to use it both ways. That is, the server also needs to receive information (a log) from the Clients and then Send Information Back based on that log entry.

Will I need to open a session from the Server to send information and a Seperate session from the client to return?

All answers apreciated greatly, Winsocket to me. :)


jgjge3.gif
[tt]'Very funny, Scotty... Now Beam down my clothes.'[/tt]
 
Winsock is bidirectional. Normally there is no reason to open two connections.
 
Normally there is no reason to open two connections.
True, unless both sides need to initiate conversations. Otherwise it's a "I talk, You reply" kind of conversation.

Chip H.


____________________________________________________________________
Click here to learn Ways to help with Tsunami Relief
If you want to get the best response to a question, please read FAQ222-2244 first
 
I've run into situations where one end was an IBM mainframe as well, and for whatever reason they chose to use two connections. I think they said it was done to avoid some one-in, one-out limitation in their CICS programs. This allowed the client end to send multiple requests without awaiting the response to each request before sending the subsequent one.
 
Thanx Guys,

Does the connection have to close before another client wants a natter with the server?



jgjge3.gif
[tt]'Very funny, Scotty... Now Beam down my clothes.'[/tt]
 
Not necessarily, the server can accept multiple connections simultaneously if written to use a control array properly.

You should find plenty on writing multiuser servers based on Winsock here already, or at other web sites supporting VB 5&6. Start with the FAQs for this forum, then maybe a few searches here and via Google or your favorite search site.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top