Click to See Complete Forum and Search --> : tcp/ip
avital_amity
September 23rd, 2003, 04:04 AM
Hello,
How do I establish a connection using the "Windows Sockets Functions" ?
Thanks in advance
Avital
j0nas
September 23rd, 2003, 04:14 AM
Do you want to establish a connection as a:
1) TCP client
2) TCP server
3) UDP client
4) UDP server
For clients, use connect()
For servers, use bind(), listen() and accept()
There are plenty of socket API samples out on the net... as well as tutorials...
avital_amity
September 23rd, 2003, 04:48 AM
tcp client
dimm_coder
September 23rd, 2003, 07:39 AM
Well, as it has been pointed out above for such a common question U can easy find some docs around net (type in google for ex. - "simple tcp-client" or whatever else) or U can looking for it throw FAQ of this forum.
But ask questions like "Help me to write ..."/"How to write simple network application" when U haven't spent any time for searching info byself is not good practise.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.