IT Community - Software Programming, Web Development and Technical Support

winsock - client AND server

This is a discussion on winsock - client AND server within the Networking & Internet Connectivity forums, part of the Computer Hardware/Software and Networking category; Is it not possible to make a program be both a client & server? I'm new to the winsock ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Computer Hardware/Software and Networking > Networking & Internet Connectivity

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 12-24-2007, 12:37 AM
kesuu kesuu is offline
D-Web Trainee
 
Join Date: Dec 2007
Posts: 6
kesuu is on a distinguished road
Default winsock - client AND server

Is it not possible to make a program be both a client & server? I'm new to the winsock control & just finished reading PINO's basic intro. I did the peer-to-peer project for client/server chat. However, I want the program to be both a server & a client so two people don't have to worry about one being the server & one being the client.

I have the code for the program to listen. However, when I put the code for it to make a connection & click the button for that code, it states "invalid operation at current state".

So is it possible to have a program be both a client & server? I think it is and maybe it needs 2 winsock controls? Any help is greatly appreciated.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time on the server, and not on the client computer. itbarota HTML, CSS and Javascript Coding Techniques 0 02-06-2008 10:13 PM
Get the time on the server, and not on the client computer. itbarota HTML, CSS and Javascript Coding Techniques 1 01-17-2008 08:53 PM
SQL Server Native Client Sathish Kumar Database Support 1 08-22-2007 01:43 AM
Desktop,Web & client server application vadivelanvaidyanathan Software Testing 1 04-13-2007 04:12 AM
Difference between Client-Server & Web Testing vadivelanvaidyanathan Software Testing 0 03-14-2007 05:51 AM


All times are GMT -7. The time now is 12:02 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0