Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
aaea080e
Commit
aaea080e
authored
10 years ago
by
Daniel Gerhardt
Browse files
Options
Downloads
Plain Diff
Merge branch 'socket.io-1.0' into integration
parents
ed3cc18c
ea3bdf42
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+1
-1
1 addition, 1 deletion
pom.xml
src/main/java/de/thm/arsnova/socket/ARSnovaSocketIOServer.java
+10
-2
10 additions, 2 deletions
...ain/java/de/thm/arsnova/socket/ARSnovaSocketIOServer.java
with
11 additions
and
3 deletions
pom.xml
+
1
−
1
View file @
aaea080e
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
<dependency>
<dependency>
<groupId>
com.corundumstudio.socketio
</groupId>
<groupId>
com.corundumstudio.socketio
</groupId>
<artifactId>
netty-socketio
</artifactId>
<artifactId>
netty-socketio
</artifactId>
<version>
1.
0
.1
</version>
<version>
1.
7
.1
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
javax.inject
</groupId>
<groupId>
javax.inject
</groupId>
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/socket/ARSnovaSocketIOServer.java
+
10
−
2
View file @
aaea080e
package
de.thm.arsnova.socket
;
package
de.thm.arsnova.socket
;
import
io.netty.channel.ChannelOption
;
import
java.io.FileInputStream
;
import
java.io.FileInputStream
;
import
java.io.FileNotFoundException
;
import
java.io.FileNotFoundException
;
import
java.io.InputStream
;
import
java.io.InputStream
;
...
@@ -15,16 +17,18 @@ import org.slf4j.Logger;
...
@@ -15,16 +17,18 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Required
;
import
org.springframework.beans.factory.annotation.Required
;
import
org.springframework.stereotype.Component
;
import
com.corundumstudio.socketio.AckRequest
;
import
com.corundumstudio.socketio.AckRequest
;
import
com.corundumstudio.socketio.Configuration
;
import
com.corundumstudio.socketio.Configuration
;
import
com.corundumstudio.socketio.SocketConfig
;
import
com.corundumstudio.socketio.SocketIOClient
;
import
com.corundumstudio.socketio.SocketIOClient
;
import
com.corundumstudio.socketio.SocketIOServer
;
import
com.corundumstudio.socketio.SocketIOServer
;
import
com.corundumstudio.socketio.listener.ConnectListener
;
import
com.corundumstudio.socketio.listener.ConnectListener
;
import
com.corundumstudio.socketio.listener.DataListener
;
import
com.corundumstudio.socketio.listener.DataListener
;
import
com.corundumstudio.socketio.listener.DisconnectListener
;
import
com.corundumstudio.socketio.listener.DisconnectListener
;
import
com.corundumstudio.socketio.p
arser
.Packet
;
import
com.corundumstudio.socketio.p
rotocol
.Packet
;
import
com.corundumstudio.socketio.p
arser
.PacketType
;
import
com.corundumstudio.socketio.p
rotocol
.PacketType
;
import
de.thm.arsnova.entities.User
;
import
de.thm.arsnova.entities.User
;
import
de.thm.arsnova.exceptions.NoContentException
;
import
de.thm.arsnova.exceptions.NoContentException
;
...
@@ -34,6 +38,7 @@ import de.thm.arsnova.services.IUserService;
...
@@ -34,6 +38,7 @@ import de.thm.arsnova.services.IUserService;
import
de.thm.arsnova.socket.message.Feedback
;
import
de.thm.arsnova.socket.message.Feedback
;
import
de.thm.arsnova.socket.message.Session
;
import
de.thm.arsnova.socket.message.Session
;
@Component
public
class
ARSnovaSocketIOServer
{
public
class
ARSnovaSocketIOServer
{
@Autowired
@Autowired
...
@@ -81,6 +86,9 @@ public class ARSnovaSocketIOServer {
...
@@ -81,6 +86,9 @@ public class ARSnovaSocketIOServer {
*/
*/
System
.
setProperty
(
"java.net.preferIPv4Stack"
,
"true"
);
System
.
setProperty
(
"java.net.preferIPv4Stack"
,
"true"
);
SocketConfig
soConfig
=
new
SocketConfig
();
soConfig
.
setReuseAddress
(
true
);
config
.
setSocketConfig
(
soConfig
);
config
.
setPort
(
portNumber
);
config
.
setPort
(
portNumber
);
config
.
setHostname
(
hostIp
);
config
.
setHostname
(
hostIp
);
if
(
useSSL
)
{
if
(
useSSL
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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