2d
comment call to method.invoke with variable number of arguments
posted update with the whole method. I don't know if I am expressing it right, but what I want to do boils down to calling a method through method.invoke using the variable number of arguments argumentsreceived on my varargs method callRemote.
2d
revised call to method.invoke with variable number of arguments
added 1246 characters in body; edited tags
2d
comment call to method.invoke with variable number of arguments
I have tried method.invoke(instance, arguments[0], arguments[1], sessionId); which worked when all the methods had two arguments. Now some of them have only one and others 2, so it's not working. Would a simple replacement for method.invoke(instance, arguments, sessionId); work for any number of arguments?
2d
asked call to method.invoke with variable number of arguments
Mar
1
revised how to bind socket in my own hosting in Php
added 623 characters in body
Mar
1
revised how to bind socket in my own hosting in Php
added 582 characters in body
Feb
28
revised how to bind socket in my own hosting in Php
added 4 characters in body
Feb
28
comment how to bind socket in my own hosting in Php
There are plenty of them. I use AWS EC2. You should check out webhostingtalk.com or some place like that to see reviews and get info on what might fit your needs.
Feb
28
revised how to bind socket in my own hosting in Php
added 428 characters in body
Feb
28
revised how to bind socket in my own hosting in Php
added 97 characters in body
Feb
28
answered how to bind socket in my own hosting in Php
Feb
28
comment how to bind socket in my own hosting in Php
use the interface ip you want to bind your socket to instead of a hostname
Feb
28
comment how to bind socket in my own hosting in Php
What do you mean when you say your own hosting? You mean a machine you own or a hosting service account you have set up on a hosting service provider?
Feb
28
comment how to bind socket in my own hosting in Php
And "my_own_hosting" is what? It must be the ip address of the interface you want the service to be accepting connections from.
Feb
28
comment how to bind socket in my own hosting in Php
good. And you are having trouble with $result = socket_bind($socket, $host, $port) or die("Could not bind to socket\n"); right?
Feb
28
revised how to bind socket in my own hosting in Php
added 542 characters in body
Feb
28
comment how to bind socket in my own hosting in Php
trust the manual before its comments: use php.net/manual/en/function.getprotobyname.php or SOL_TCP for determining the third parameter instead of 0. You have only provided the code for creating the socket. What about the binding call that's returning the error? Where is your socket_listen call on the server? Where is your socket_connect call on the client? Where is your code!!!
Feb
28
comment how to bind socket in my own hosting in Php
Also, what can of socket are you trying to bind to? Would you care to share the code doing the call and the socket_create call?
Feb
28
comment how to bind socket in my own hosting in Php
is the port in use by another service (try netstat to check)? are you binding to an actual ip assigned to an interface o the machine in which you are running you script (try ifconfig or ipconfig /all if you are on windowsto check)?
Feb
28
comment how to bind socket in my own hosting in Php
which error? I left my crystal ball at work (I can try and guess your cheap hosting provider blocks PHP socket API calls for safety reasons or you are calling PHP cgi web server which does not have root privileges: php.net/manual/en/function.socket-create.php#68709)
1 2 3 4 5