Skip to content
Advertisement

Tag: sockets

JAX WS Server implementation performance issue for Linux JVM?

I’ve faced with a very weird problem. The built-in JAX WS server implementation works 100 times slower on linux machines then on Mac OS X or Windows. I’ve created and shared a JMH test: https://github.com/Andremoniy/linuxjvmjaxwstest Basically it does the following: starts a JAX WS with one SOAP method: endpoint = Endpoint.publish(“http://localhost:8888/”, new FooServiceImpl()); performs client requests to this method: String

Server not accepting request on port 9999

I am trying to deploy my socket[phpws library] on amazon EC2 instance. For this I deployed code and run socket. I have selected port 9999 for socket handshake, but it is not working. I tried to captured request on this server by command : Then I hit this port, I did not received any request. I thought this is because

How to ensure a posix c socket is still valid

I,m working on an embedded linux kernel 2.6 device and need to know if previously established socket is still valid or not,Also I can not do this with usual send function and check the returned value,because if I send to the invalid socket descriptor,my application will crash and linux will shut down my process.Is there any other function/suggestion for this

socket recv function not returning updated value

Trying to create socket application using c (Linux) to constantly fetch data from a server For this I have created a loop and inside it the routine connects , send a command, receive some data and close the socket. It works fine for the first interaction but looks like the recv function failing to update the buffer variable from second

Who can send to a socket bound to INADDR_LOOPBACK?

I’m somewhat new to socket programming, and am confused about the concept of binding a socket to the address INADDR_LOOPBACK, or 127.0.0.1. If I’m writing server code to listen for messages on a specific port, and I bind a socket to an address as in the following code exerpt… …my question is: who is able to send to this socket?

sudo doesn’t work, but root user works [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

Domain argument to socket() and socketpair()

I’ve been studying Linux socket programming recently, and the concepts are still swirling and unsettled in my head. Can someone confirm or correct my understanding of the domain argument to socket() and socketpair(): one should choose PF_LOCAL (or PF_UNIX) if one wants the socket communication to be strictly within the same computer, and one should choose PF_INET if the socket

Advertisement