Thread: Connecting to servers ect

  1. #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

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User Seph_31's Avatar
    Join Date
    Nov 2003
    Posts
    24
    umm thats unix not winsock
    --Seph

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #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.

Popular pages Recent additions subscribe to a feed

Similar Threads

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