Software communication via winsock control 
Author Message
 Software communication via winsock control

I'm very new to the winsock control.  If I have a program that  I want to
communicate with a 'server' via TCP how would I send 'comands' to it.  For
example if I want the client to receive the path to a shared file, then
later to receive some other piece of information.  Currently I'm using
string 'tags' like "<path>xxxxxxx" ending with a NULL character, so I know
that <path> is giving me a file path.

Seems to be primitive to me, what would be a 'normal' way of software

Secondly, would the winsock control ever time-out after a while or should it
always stay connected even though no data is being transmitted?


Mon, 20 May 2002 03:00:00 GMT  
 Software communication via winsock control

> Seems to be primitive to me, what would be a 'normal' way of software
> 'banter'?

That IS the normal way!  Most TCP protocols work like this.  If you want to
send mail via SMTP then you send 'commands' in the form of

MAIL FROM: <your address>
RCPT TO: <target address>
This is my message

Likewise with logging in to FTP or any other protocol you send commands that
are delimited in some way.  Usually it's the command name followed by a
colon followed by the data.

Fri, 24 May 2002 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Send File via Winsock Control

2. sending data via winsock control

3. Sending Variables Via the Winsock Control

4. SNMP via winsock control

5. Sending a message via Winsock control

6. the program hangs when trying to via winsock control

7. Sending a message via Winsock control

8. Sending binary data via winsock control in VB5


Powered by phpBB® Forum Software