Connecting to servers ect

This is a discussion on Connecting to servers ect within the Networking/Device Communication forums, part of the General Programming Boards category; I have been looking for a while and have yet to find ways to connect to servers and send data ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,340
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,340
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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-23-2006, 11:36 PM
  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, 08:23 AM

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