❔ Sockets, SendTo is erroring
A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied.
With my setup, the socket is connected in a different class but I am trying to send a message to that socket via its endpoint where I get an error, is that possible or do I have to use the socket class its self?
20 Replies
the socket is connected in a different classthe error says otherwise the socket is not connected what is
Listener
?Listener is the main socket listening to all connections
Similar to TCP Listener
also as far as I can tell the connection stays alive other wise I'd be getting an error let me check tho
but what IS it?
Acts as a server
OH EWAIT
Im sorry i'm tired as fuck
@jakenveina
ignore the debug info and stuff
but its connected
just the way i send it isnt thru the Socket class its thru the server -> Ip Endpoint
i could make it send via the actual client socket thats on the server just would be alot more annoying because i would have to redesign alot of stuff
Tho I assume I can't just send out data from the server when the 2 sockets arent connected (even tho they are but the way im sending isnt connected ig)
the actual client socket thats on the serverhuh?
are you sure you are using the correct socket?
like you have .Accept() and stuff
yes
i do
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.This is inspirational iskra
Can you provide all of your code so we can help you mroe? Project file would be fine
i alr fixed the problem
r u ever gonna release this
or ni
no
Not going to disclose that
Most likely tho
since its not for rogue anymore
What is rogue
i dont know
never heard of it
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.