I am writing a socket clipboard server to work around VNC’s inability to pass Unicode through its clipboard.
Very similar to the TIG, I have a C# app listening to a port and will either GET or SET the clipboard.
The idea is that Eggplant will open a socket to that port and either:
[list=1]“GET” and wait for the end of response and then close
"SET " and then close[/list:o]
I have opened up the SockClip’s listening port the SUT, and my listener works fine on the SUT in local-loopback mode.
I then try the following code from Eggplant:
setClip "foobar" to handle setClip text set remoteClipServer to ServerID of ConnectionInfo() & ":9973" open socket remoteClipServer write "SET " & text to socket remoteClipServer close socket remoteClipServer end setClip
The “write … to” results in a “NSFileHandleOperationException: Broken pipe” exception.
My C# socket server never sees any actual connection to “Accept” or read.
What is this error, and how can I debug what is going wrong?
When should I expect the first true connection to take place?
Does the connection persist between a write and the next read, or is each read/write/etc made w/ a different connection?
Is there something wrong w/ my above code?
Just curious: Are there any socket restrictions w/ the licensing model?