we would need 5 small basic php functions being programmed for a script which is interacting with an EPP Server:
Examples for a script using EPP can be found e.g. here: [url removed, login to view]
Now this is just a pointer on what we need. Basically we would need some extras to that (don´t bother with the xml-stuff - we only need the php functions themself), which are explained in detail below and would rather more have something alike realised by pure sockets and not fsockopen or stream_socket-variants.
Connect() should have these parameters: $host, $port, $ip, $connType, $timeout
$host = the host to connect to
$port = the port to connect to
$ip = the IP to be used to connect
$connType = either SSL or TCP
$timeout = the timeout in microseconds
The function should return 1 on succesfull connect, 0 on unsuccesfull as well as the response of the EPP server
Send() should have these parameters: $socket, $data, $timeout
$socket = which socket to use (which before was created by connect) to send data
$data = the data to be send
$timeout = the time in microseconds that the send process should take at max until the function returns „error“.
On success the function should return the response of the EPP server
Receive() should have these parameters: $socket, $timeout
$socket = which socket the response is exspected
$timeout = the time in microseconds that the receive process should wait for a response at max until the function returns „error“.
On success the function should return the response that is received on the given socket.
Alive() should have these parameters: $socket, $timeout
$socket = check wether the socket/the connection is still alive (only PHP wise without the need to send an EPP helo or stuff like that)
$timeout = the time in microseconds that is used for that function, on timeout it should return „error“ if socket/connection is still alive it should return „1“
Disconnect() should have these parameters: $socket, $timeout
$socket = the socket to be closed.
$timeout = Max time in microseconds to disconnect the current socket.
We would like to encourage you to write the functions as simple as possible as on the one hand, we don´t plan to invest a bigger amount of money to that project on the other hand we would like to be able to easily read and modify the code.
If you cannot fulfill ALL of the requirements please don´t bother to bid. Exspecially the timeouts and those being functional as described are essential to us.
We would strongly prefer an implementation with pure sockets rather more than using stream_socket-variations.