org.jboss.websockets.oio.internal.protocol.ietf13
Class Hybi13Socket
java.lang.Object
org.jboss.websockets.oio.internal.AbstractWebSocket
org.jboss.websockets.oio.internal.protocol.ietf13.Hybi13Socket
- All Implemented Interfaces:
- OioWebSocket
public class Hybi13Socket
- extends AbstractWebSocket
- Author:
- Mike Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hybi13Socket
public Hybi13Socket(InputStream inputStream,
OutputStream outputStream,
ClosingStrategy closingStrategy)
from
public static OioWebSocket from(HttpRequestBridge request,
HttpResponseBridge response,
ClosingStrategy closingStrategy)
throws IOException
- Throws:
IOException
_readBinaryFrame
public byte[] _readBinaryFrame()
throws IOException
- Throws:
IOException
readFrame
public Frame readFrame()
throws IOException
- Description copied from interface:
OioWebSocket
- Read a single frame from the socket.
- Returns:
- an instance of the received
Frame
- Throws:
IOException
writeFrame
public void writeFrame(Frame frame)
throws IOException
- Description copied from interface:
OioWebSocket
- Write a frame to the socket.
- Parameters:
frame
- the @{link Frame} instance to write to the socket.
- Throws:
IOException
main
public static void main(String[] args)
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.