windows winsock

This is a discussion on windows winsock within the Networking/Device Communication forums, part of the General Programming Boards category; ok question (both server and client) set up server to listen for incoming connections/data on the client side, i open ...

  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    289

    windows winsock

    ok question
    (both server and client)

    set up server to listen for incoming connections/data

    on the client side, i open socket, bind it etc.

    i then send data,

    can i just keep sending data, or do i have to re-connect to resend again?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,822
    You keep sending and receiving until one end decides to close the connection.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to make winsock.h for windows socket programming?
    By thomas_joyee in forum Networking/Device Communication
    Replies: 9
    Last Post: 03-18-2010, 12:28 AM
  2. weird winsock output and winsock 2 not working
    By whackaxe in forum Networking/Device Communication
    Replies: 4
    Last Post: 07-09-2004, 12:10 PM
  3. Winsock End-of-Message Response :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 12-24-2002, 01:27 PM
  4. winsock and TCP/IP in C++
    By o_man_ra23 in forum C++ Programming
    Replies: 1
    Last Post: 10-03-2002, 11:32 PM
  5. About <winsock.h> and <windows.h>
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 11-19-2001, 12:53 PM

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