C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 11-27-2003, 04:09 PM   #1
Registered User
 
Seph_31's Avatar
 
Join Date: Nov 2003
Posts: 24
Connecting to servers ect

I have been looking for a while and have yet to find ways to connect to servers and send data ect. I was wondering of anyone could tell me how to conenct to a server then send a string to it. Imtrying to make a program where it asks for some text and you type in in then it asks for the server and it connects and sends the text in a packet to the server. I have everything except the connect and send part and it is on wondows not unix so it uses winsock.
__________________
--Seph
Seph_31 is offline   Reply With Quote
Old 11-27-2003, 04:18 PM   #2
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
Beej does client/server
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 11-27-2003, 04:20 PM   #3
Registered User
 
Seph_31's Avatar
 
Join Date: Nov 2003
Posts: 24
umm thats unix not winsock
__________________
--Seph
Seph_31 is offline   Reply With Quote
Old 11-27-2003, 05:16 PM   #4
and the hat of vanishing
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,214
Here's a tip - read the rest of it
It describes the rather small differences between the two.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Up to 8Mb PlusNet broadband from only £5.99 a month!
Salem is offline   Reply With Quote
Old 12-02-2003, 08:25 AM   #5
Registered User
 
Join Date: Dec 2001
Posts: 108
One of the best tutorials on network programming I have seen is at http://www.madwizard.org/. It is very well written, easy to follow and gives you a good foundation in learning the Winsock API. Both a C++ and Macro Assembler version can be downloaded.
DarkStar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting to servers (sockets?) Muscovy Linux Programming 2 07-03-2009 05:09 PM
General question why must of the servers written in c and not c++ ? umen242 Networking/Device Communication 3 06-26-2008 04:17 AM
Program to fetch MX servers lopes Windows Programming 1 03-24-2006 12:36 AM
problem connecting to db using odbc WaterNut Windows Programming 4 05-28-2004 02:37 PM
irc servers Sekti A Brief History of Cprogramming.com 4 02-28-2002 09:23 AM


All times are GMT -6. The time now is 01:34 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22