Thread: windows winsock

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

    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
    39,660
    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.

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-17-2010, 11:28 PM
  2. weird winsock output and winsock 2 not working
    By whackaxe in forum Networking/Device Communication
    Replies: 4
    Last Post: 07-09-2004, 11:10 AM
  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, 10: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