org.apgrid.grpc.ng
Class XDRWire
java.lang.Object
org.apgrid.grpc.ng.Wire
org.apgrid.grpc.ng.XDRWire
- public class XDRWire
- extends Wire
Constructor Summary |
XDRWire(java.net.Socket socket)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XDRWire
public XDRWire(java.net.Socket socket)
throws GrpcException
- Parameters:
socket
-
- Throws:
GrpcException
receiveString
public java.lang.String receiveString()
throws GrpcException
- Specified by:
receiveString
in class Wire
- Returns:
-
- Throws:
GrpcException
receiveBytes
public byte[] receiveBytes(byte[] buffer,
int start,
int length)
throws GrpcException
- Specified by:
receiveBytes
in class Wire
- Parameters:
buffer
- start
- length
-
- Returns:
-
- Throws:
GrpcException
sendBytes
public void sendBytes(byte[] buffer)
throws GrpcException
- Specified by:
sendBytes
in class Wire
- Parameters:
buffer
-
- Throws:
GrpcException
sendBytes
public void sendBytes(byte[] buffer,
int offset,
int length)
throws GrpcException
- Specified by:
sendBytes
in class Wire
- Parameters:
buffer
- offset
- length
-
- Throws:
GrpcException