TrialKey
SocketQ C++ Classes
SocketQ C++ Classes
  • Overview
    • Requirements
    • Performance and Design Considerations
    • Technical Support
    • Using SocketQ Classes
  • API Reference
    • Properties
      • ChunkSize
      • ConnectionCount
      • IsActive
      • LastSockErr
      • LocalHostIP
      • LocalHostIPAliases
      • LocalHostName
      • LocalHostNameAliases
      • SocketInfoDescription
      • SocketInfoHighVersion
      • SocketInfoSystemStatus
      • SocketInfoVersion
      • Users
    • Methods
      • ActivateWinsock
      • AddListener
      • CloseSock
      • ConnectSock
      • GetErrorDescription
      • IsListener
      • ItemExists
      • LocalIP
      • LocalPort
      • NotifyOnEmptySendQue
      • RemoteHostIP
      • RemoteHostIPAliases
      • RemoteHostName
      • RemoteHostNameAliases
      • RemotePort
      • SendData
      • SetSockOption
      • TransmitFileByName
    • Events
      • ConnectionEstablished
      • ConnectionRequest
      • ConnectionTerminated
      • DataArrival
      • EmptySendQue
      • Error
    • Constants
      • SQ_PROTOCOL
      • SQ_TRANSMITFILE_FLAGS
      • SQ_SOCK_OPTION
      • SQ_GENERAL_ERRORS
Powered by GitBook
On this page
  • Description
  • Remarks
  • Prototype
  1. API Reference
  2. Methods

CloseSock

Description

Closes a socket with the specified handle.

Good to know: Using this method to close a socket only once all data has been transmitted or received.

Remarks

This method closes an open socket, and returns zero if successful, and a Winsock error code if not.

Prototype

LONG CloseSock(long SocketHandle, BOOL NoLinger = FALSE)

PreviousAddListenerNextConnectSock

Last updated 2 years ago