Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

ProxySocket.Send Method

Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)

Send(Byte[], Int32, Int32)

Sends the specified amount of data to a connected ProxySocket starting at the indicated location in the data and using the supplied flags.

Declaration
public int Send(byte[] buffer, int offset, int count)
Parameters
Type Name Description
Byte[] buffer

The data to be sent.

Int32 offset

The position in the data buffer to begin sending data.

Int32 count

The number of bytes to send.

Returns
Type Description
Int32

The number of bytes sent.

Remarks

Prior to sending data, the socket must be connected using either a call to Connect(EndPoint) method or a call to Listen(ISocket) and Accept() methods.

Send(Byte[], Int32, Int32, SocketFlags)

Sends the specified amount of data to a connected ProxySocket starting at the indicated location in the data and using the supplied flags.

Declaration
public int Send(byte[] buffer, int offset, int count, SocketFlags socketFlags)
Parameters
Type Name Description
Byte[] buffer

The data to be sent.

Int32 offset

The position in the data buffer to begin sending data.

Int32 count

The number of bytes to send.

SocketFlags socketFlags

A bitwise combination of the SocketFlags values.

Returns
Type Description
Int32

The number of bytes sent.

Implements
ISocket.Send(Byte[], Int32, Int32, SocketFlags)
Remarks

Prior to sending data, the socket must be connected using either a call to Connect(EndPoint) method or a call to Listen(ISocket) and Accept() methods.

Send(Byte[])

Sends data to a connected ProxySocket.

Declaration
public int Send(byte[] buffer)
Parameters
Type Name Description
Byte[] buffer

The data to be sent.

Returns
Type Description
Int32

The number of bytes sent.

Remarks

Prior to sending data, the socket must be connected using either a call to Connect(EndPoint) method or a call to Listen(ISocket) and Accept() methods.

Send(Byte[], SocketFlags)

Sends data to a connected ProxySocket using the supplied flags.

Declaration
public int Send(byte[] buffer, SocketFlags socketFlags)
Parameters
Type Name Description
Byte[] buffer

The data to be sent.

SocketFlags socketFlags

A bitwise combination of the SocketFlags values.

Returns
Type Description
Int32

The number of bytes sent.

Remarks

Prior to sending data, the socket must be connected using either a call to Connect(EndPoint) method or a call to Listen(ISocket) and Accept() methods.

Send(Byte[], Int32, SocketFlags)

Sends the specified amount of data to a connected ProxySocket using the supplied flags.

Declaration
public int Send(byte[] buffer, int count, SocketFlags socketFlags)
Parameters
Type Name Description
Byte[] buffer

The data to be sent.

Int32 count

The number of bytes to send.

SocketFlags socketFlags

A bitwise combination of the SocketFlags values.

Returns
Type Description
Int32

The number of bytes sent.

Remarks

Prior to sending data, the socket must be connected using either a call to Connect(EndPoint) method or a call to Listen(ISocket) and Accept() methods.

In This Article
  • Send(Byte[], Int32, Int32)
  • Send(Byte[], Int32, Int32, SocketFlags)
  • Send(Byte[])
  • Send(Byte[], SocketFlags)
  • Send(Byte[], Int32, SocketFlags)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies