Skip to content
Snippets Groups Projects
Commit 37a33a50 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

EngineIO: Drop named inherits.

parent 4e28f2d7
No related branches found
No related tags found
No related merge requests found
...@@ -201,7 +201,7 @@ class Socket { ...@@ -201,7 +201,7 @@ class Socket {
} }
class Polling { class Polling {
inherit Transport:t; inherit Transport;
private int forceascii; private int forceascii;
final protected Stdio.Buffer c = Stdio.Buffer(); final protected Stdio.Buffer c = Stdio.Buffer();
...@@ -255,7 +255,7 @@ class Socket { ...@@ -255,7 +255,7 @@ class Socket {
if (_options->compressionLevel) if (_options->compressionLevel)
gzfile = Gz.File(); gzfile = Gz.File();
#endif #endif
t::create(_req); ::create(_req);
if (_req.request_headers.origin) { if (_req.request_headers.origin) {
headers["Access-Control-Allow-Credentials"] = "true"; headers["Access-Control-Allow-Credentials"] = "true";
headers["Access-Control-Allow-Origin"] = _req.request_headers.origin; headers["Access-Control-Allow-Origin"] = _req.request_headers.origin;
...@@ -396,7 +396,7 @@ class Socket { ...@@ -396,7 +396,7 @@ class Socket {
} }
class XHR { class XHR {
inherit Polling:p; inherit Polling;
constant forcebinary = 1; constant forcebinary = 1;
final protected void getbody(Protocols.WebSocket.Request _req) { final protected void getbody(Protocols.WebSocket.Request _req) {
...@@ -411,12 +411,12 @@ class Socket { ...@@ -411,12 +411,12 @@ class Socket {
} }
class JSONP { class JSONP {
inherit Polling:p; inherit Polling;
private string head; private string head;
protected void create(Protocols.WebSocket.Request req) { protected void create(Protocols.WebSocket.Request req) {
p::create(req); ::create(req);
head = "___eio[" + (int)req.variables->j + "]("; head = "___eio[" + (int)req.variables->j + "](";
noop = head+"\""+::noop+"\");"; noop = head+"\""+::noop+"\");";
} }
...@@ -436,7 +436,7 @@ class Socket { ...@@ -436,7 +436,7 @@ class Socket {
} }
class WebSocket { class WebSocket {
inherit Transport:t; inherit Transport;
private Protocols.WebSocket.Connection con; private Protocols.WebSocket.Connection con;
private Stdio.Buffer bb = Stdio.Buffer(); private Stdio.Buffer bb = Stdio.Buffer();
...@@ -452,7 +452,7 @@ class Socket { ...@@ -452,7 +452,7 @@ class Socket {
con = _con; con = _con;
con.onmessage = recv; con.onmessage = recv;
con.onclose = ::close; con.onclose = ::close;
t::create(req); ::create(req);
} }
final void flush(void|int type, void|string|Stdio.Buffer msg) { final void flush(void|int type, void|string|Stdio.Buffer msg) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment