mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 11:15:12 -04:00
Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.7.10
This commit is contained in:
commit
06d2e657bc
@ -64,7 +64,7 @@ class InternetCard extends prefab.ManagedEnvironment {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Callback(direct = true, doc = """function():boolean -- Returns whether TCP connections can be made (config setting).""")
|
@Callback(direct = true, doc = """function():boolean -- Returns whether TCP connections can be made (config setting).""")
|
||||||
def isTcpEnabled(context: Context, args: Arguments): Array[AnyRef] = result(Settings.get.httpEnabled)
|
def isTcpEnabled(context: Context, args: Arguments): Array[AnyRef] = result(Settings.get.tcpEnabled)
|
||||||
|
|
||||||
@Callback(doc = """function(address:string[, port:number]):number -- Opens a new TCP connection. Returns the handle of the connection.""")
|
@Callback(doc = """function(address:string[, port:number]):number -- Opens a new TCP connection. Returns the handle of the connection.""")
|
||||||
def connect(context: Context, args: Arguments): Array[AnyRef] = this.synchronized {
|
def connect(context: Context, args: Arguments): Array[AnyRef] = this.synchronized {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user