Boop
Boop
Explore posts from servers
CC#
Created by Boop on 9/25/2022 in #help
MessagePack erroring
@Thaumanovic any ideas?
32 replies
CC#
Created by Boop on 9/25/2022 in #help
MessagePack erroring
@Thaumanovic
32 replies
CC#
Created by Boop on 9/25/2022 in #help
MessagePack erroring
same error
32 replies
CC#
Created by Boop on 9/25/2022 in #help
MessagePack erroring
[MessagePackObject]
public class InitialConnectionData
{
/*
[SerializationConstructor]
public InitialConnectionData(string pcName, string dnsIpAddr, string osVersion)
{
PCName = pcName;
DnsIpAddr = dnsIpAddr;
OSVersion = osVersion;
}
*/
[Key(0)] public string PCName { get; set; }

[Key(1)] public string MachineIPAddr { get; set; }

[IgnoreMember] public string DnsIpAddr { get; set; }

[IgnoreMember] public Socket LinkedSocket { get; set; }

[Key(3)] public string OSVersion { get; set; }
[MessagePackObject]
public class InitialConnectionData
{
/*
[SerializationConstructor]
public InitialConnectionData(string pcName, string dnsIpAddr, string osVersion)
{
PCName = pcName;
DnsIpAddr = dnsIpAddr;
OSVersion = osVersion;
}
*/
[Key(0)] public string PCName { get; set; }

[Key(1)] public string MachineIPAddr { get; set; }

[IgnoreMember] public string DnsIpAddr { get; set; }

[IgnoreMember] public Socket LinkedSocket { get; set; }

[Key(3)] public string OSVersion { get; set; }
32 replies
CC#
Created by Boop on 9/25/2022 in #help
MessagePack erroring
var sendData = new SocketSendData( /*new InitialConnectionData(Helpers.GetPCDisplayName(),
Helpers.GetIPAddress(), Helpers.GetOSVersion())*/ new InitialConnectionData
{
PCName = Helpers.GetPCDisplayName(), MachineIPAddr = Helpers.GetIPAddress(),
OSVersion = Helpers.GetOSVersion()
});
var sendData = new SocketSendData( /*new InitialConnectionData(Helpers.GetPCDisplayName(),
Helpers.GetIPAddress(), Helpers.GetOSVersion())*/ new InitialConnectionData
{
PCName = Helpers.GetPCDisplayName(), MachineIPAddr = Helpers.GetIPAddress(),
OSVersion = Helpers.GetOSVersion()
});
32 replies
CC#
Created by Boop on 9/25/2022 in #help
MessagePack erroring
so remove it from the class and create a blank version of it?
32 replies
CC#
Created by Boop on 9/25/2022 in #help
MessagePack erroring
sorry the what>
32 replies
CC#
Created by Boop on 9/25/2022 in #help
MessagePack erroring
using the NuGet package
32 replies
CC#
Created by Boop on 9/25/2022 in #help
MessagePack erroring
32 replies
CC#
Created by Boop on 9/25/2022 in #help
MessagePack erroring
32 replies
CC#
Created by Boop on 9/25/2022 in #help
MessagePack erroring
sorry forgot to say, it throws at var buf = MessagePackSerializer.Serialize(sendData);
32 replies
CC#
Created by Boop on 9/24/2022 in #help
Socket Identification Help & Sending Bitmaps
anyone?
30 replies
CC#
Created by Boop on 9/24/2022 in #help
Socket Identification Help & Sending Bitmaps
no?
30 replies
CC#
Created by Boop on 9/24/2022 in #help
Socket Identification Help & Sending Bitmaps
anyone?
30 replies
CC#
Created by Boop on 9/24/2022 in #help
Socket Identification Help & Sending Bitmaps
yeah so when I do socket.Send where can I put an identifier to tell the server what it even is
30 replies
CC#
Created by Boop on 9/24/2022 in #help
Socket Identification Help & Sending Bitmaps
is it initial data, is it a screen
30 replies
CC#
Created by Boop on 9/24/2022 in #help
Socket Identification Help & Sending Bitmaps
but when they send data, I want to know what data they are sending, the purpose of it
30 replies
CC#
Created by Boop on 9/24/2022 in #help
Socket Identification Help & Sending Bitmaps
a client connects to a socket server
30 replies
CC#
Created by Boop on 9/24/2022 in #help
Socket Identification Help & Sending Bitmaps
what I have is
30 replies
CC#
Created by Boop on 9/24/2022 in #help
Socket Identification Help & Sending Bitmaps
byte[] recBuf = new byte[received];
Array.Copy(buffer, recBuf, received);
string text = Encoding.ASCII.GetString(recBuf);
Console.WriteLine("Received Text: " + text);
string[] brokenText = text.Split(":".ToCharArray());
Console.WriteLine("EventName: " + brokenText[0]);
byte[] recBuf = new byte[received];
Array.Copy(buffer, recBuf, received);
string text = Encoding.ASCII.GetString(recBuf);
Console.WriteLine("Received Text: " + text);
string[] brokenText = text.Split(":".ToCharArray());
Console.WriteLine("EventName: " + brokenText[0]);
this is what I got atm
30 replies