C# Class Twingly.Gearman.GearmanProtocol

Mostrar archivo Open project: twingly/GearmanSharp

Public Methods

Method Description
JoinByteArraysForData ( ) : byte[]

Concatenates a number of byte arrays with \0 between them.

PackRequest ( PacketType packetType ) : RequestPacket
PackRequest ( PacketType packetType, string arg1 ) : RequestPacket
PackRequest ( PacketType packetType, string arg1, byte arg2 ) : RequestPacket
PackRequest ( PacketType packetType, string arg1, string arg2 ) : RequestPacket
PackRequest ( PacketType packetType, string arg1, string arg2, byte arg3 ) : RequestPacket
PackRequest ( PacketType packetType, string arg1, string arg2, string arg3 ) : RequestPacket
UnpackErrorReponse ( IResponsePacket response ) : GearmanServerException
UnpackJobAssignResponse ( IResponsePacket response ) : GearmanJobInfo
UnpackJobCreatedResponse ( IResponsePacket response ) : string
UnpackStatusResponse ( IResponsePacket response ) : GearmanJobStatus
UnpackWorkCompleteResponse ( IResponsePacket response ) : GearmanJobData
UnpackWorkDataResponse ( IResponsePacket response ) : GearmanJobData

Protected Methods

Method Description
GearmanProtocol ( IGearmanConnection connection ) : System

Method Details

GearmanProtocol() protected method

protected GearmanProtocol ( IGearmanConnection connection ) : System
connection IGearmanConnection
return System

JoinByteArraysForData() public static method

Concatenates a number of byte arrays with \0 between them.
public static JoinByteArraysForData ( ) : byte[]
return byte[]

PackRequest() public static method

public static PackRequest ( PacketType packetType ) : RequestPacket
packetType PacketType
return Twingly.Gearman.Packets.RequestPacket

PackRequest() public static method

public static PackRequest ( PacketType packetType, string arg1 ) : RequestPacket
packetType PacketType
arg1 string
return Twingly.Gearman.Packets.RequestPacket

PackRequest() public static method

public static PackRequest ( PacketType packetType, string arg1, byte arg2 ) : RequestPacket
packetType PacketType
arg1 string
arg2 byte
return Twingly.Gearman.Packets.RequestPacket

PackRequest() public static method

public static PackRequest ( PacketType packetType, string arg1, string arg2 ) : RequestPacket
packetType PacketType
arg1 string
arg2 string
return Twingly.Gearman.Packets.RequestPacket

PackRequest() public static method

public static PackRequest ( PacketType packetType, string arg1, string arg2, byte arg3 ) : RequestPacket
packetType PacketType
arg1 string
arg2 string
arg3 byte
return Twingly.Gearman.Packets.RequestPacket

PackRequest() public static method

public static PackRequest ( PacketType packetType, string arg1, string arg2, string arg3 ) : RequestPacket
packetType PacketType
arg1 string
arg2 string
arg3 string
return Twingly.Gearman.Packets.RequestPacket

UnpackErrorReponse() public static method

public static UnpackErrorReponse ( IResponsePacket response ) : GearmanServerException
response IResponsePacket
return Twingly.Gearman.Exceptions.GearmanServerException

UnpackJobAssignResponse() public static method

public static UnpackJobAssignResponse ( IResponsePacket response ) : GearmanJobInfo
response IResponsePacket
return GearmanJobInfo

UnpackJobCreatedResponse() public static method

public static UnpackJobCreatedResponse ( IResponsePacket response ) : string
response IResponsePacket
return string

UnpackStatusResponse() public static method

public static UnpackStatusResponse ( IResponsePacket response ) : GearmanJobStatus
response IResponsePacket
return GearmanJobStatus

UnpackWorkCompleteResponse() public static method

public static UnpackWorkCompleteResponse ( IResponsePacket response ) : GearmanJobData
response IResponsePacket
return GearmanJobData

UnpackWorkDataResponse() public static method

public static UnpackWorkDataResponse ( IResponsePacket response ) : GearmanJobData
response IResponsePacket
return GearmanJobData