Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
37a33a50
Commit
37a33a50
authored
8 years ago
by
Stephen R. van den Berg
Browse files
Options
Downloads
Patches
Plain Diff
EngineIO: Drop named inherits.
parent
4e28f2d7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/modules/Protocols.pmod/EngineIO.pmod
+7
-7
7 additions, 7 deletions
lib/modules/Protocols.pmod/EngineIO.pmod
with
7 additions
and
7 deletions
lib/modules/Protocols.pmod/EngineIO.pmod
+
7
−
7
View file @
37a33a50
...
@@ -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) {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment