NetworkComms SendReceiveObject sendObjectType, returnObjectType  Method NetworkComms.Net Help
Send the provided object to the specified destination and wait for a return object using TCP. Uses default sendReceiveOptions. For more control over options see connection specific methods.

Namespace: NetworkCommsDotNet
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public static returnObjectType SendReceiveObject<sendObjectType, returnObjectType>(
	string sendingPacketTypeStr,
	string destinationIPAddress,
	int destinationPort,
	string expectedReturnPacketTypeStr,
	int returnPacketTimeOutMilliSeconds,
	sendObjectType sendObject
)

Parameters

sendingPacketTypeStr
Type: OnlineSystem String
Packet type to use during send
destinationIPAddress
Type: OnlineSystem String
The destination IP address
destinationPort
Type: OnlineSystem Int32
The destination listen port
expectedReturnPacketTypeStr
Type: OnlineSystem String
Expected packet type used for return object
returnPacketTimeOutMilliSeconds
Type: OnlineSystem Int32
Time to wait in milliseconds for return object
sendObject
Type: sendObjectType
Object to send
Type Parameters

sendObjectType
The sending object type, i.e. string, int[], etc
returnObjectType
The expected return object type, i.e. string, int[], etc

Return Value

Type: returnObjectType
The expected return object
See Also