ChanServ changed the topic of #wayland to: https://wayland.freedesktop.org | Discussion about the Wayland protocol and its implementations, plus libinput | register your nick to speak
Lucretia has quit [Read error: Connection reset by peer]
Lucretia has joined #wayland
ybogdano has quit [Ping timeout: 480 seconds]
sav10 has quit [Read error: No route to host]
Seirdy has quit [Ping timeout: 480 seconds]
Seirdy has joined #wayland
cvmn has joined #wayland
<DemiMarie> smallville7123: I still think that ALPC is the only viable approach, even though it is undocumented.
co1umbarius has joined #wayland
columbarius has quit [Ping timeout: 480 seconds]
cvmn has quit [Ping timeout: 480 seconds]
cool110 has quit [Ping timeout: 480 seconds]
cool110 has joined #wayland
cool110 has quit [Remote host closed the connection]
cool110 has joined #wayland
agd5f has quit [Ping timeout: 480 seconds]
yoslin has quit [Ping timeout: 480 seconds]
mackerelian9 has quit []
smallville7123 has joined #wayland
<smallville7123> yea but we need to get wayland to compile successfully first (mainly get the socket communication working successfully)
<smallville7123> as there not much point if the socket's are broken lol
<smallville7123> to send and recieve connection->out would we send the iov struct ?
nerdopolis_ has quit [Ping timeout: 480 seconds]
<smallville7123> eg send(connection->fd, iov, sizeof(iov), 0); recv(connection->fd, &iov, sizeof(iov), 0);
Seirdy has quit []
<smallville7123> eg ring_buffer_get_iov(&connection->out, iov, &count); send(connection->fd, iov, sizeof(iov), 0); ring_buffer_put_iov(&connection->in, iov, &count); recv(connection->fd, &iov, sizeof(iov), 0); *
yoslin has joined #wayland
<smallville7123> as the only other way i can see it working without sendmsg is to manually iterate the out ringbuffer byte-by-byte and send each byte for the recepient to put into the in ringbuffer byte by byte
<smallville7123> eg SEND_TOTAL_BYTES(connection); ITERATE_RB(connection->out, byte) do { len = send(connection->fd, byte, sizeof(char), 0); } while (len == SOCKET_ERROR && WSAGetLastError() == WSAEINTR);
<smallville7123> GET_TOTAL_BYTES(connection, bytes); char byte; for(size_t r = 0; r < bytes;) { while(true) { len = recv(connection->fd, &byte, sizeof(char), 0); if (len == SOCKET_ERROR && WSAGetLastError() == WSAEINTR) continue; r++; ring_buffer_put(&connection->in, &byte, sizeof(char)); } }
<smallville7123> errr the while(true) loop shouldnt be there as the for loop is effectively doing the same thing as while(r < bytes)
<smallville7123> if only winsocks has sendmsg i could just leave the existing send/read code alone and not have to worry about it breaking on windows ;-;
<smallville7123> there is https://learn.microsoft.com/en-us/windows/win32/api/ws2def/ns-ws2def-wsamsg but it doesnt seem like it supports sending HANDLE's or any equivilant of SCM_RIGHTS
<smallville7123> pq: what does size = cmsg->cmsg_len - CMSG_LEN(0); mean in decode_cmsg
<smallville7123> eg size = cmsg->cmsg_len - CMSG_LEN(0); max = sizeof(buffer->data) - ring_buffer_size(buffer); if (size > max || overflow) {
<smallville7123> would it simply mean that we are checking if we have enough space in the ringbuffer to store the current piece of data?
<smallville7123> tho, in that case wouldnt size = sizeof(int32_t); be equivilant since the CMSG only gets decoded if it contains SCM_RIGHTS which is used for transferring descriptors ?
<smallville7123> or would size be the total size of all the sent descriptors in the current CMSG header ?
<smallville7123> eg sizeof(int32_t) * number_of_descriptors_sent
genpaku has quit [Remote host closed the connection]
larunbe has quit [Ping timeout: 480 seconds]
genpaku has joined #wayland
mokee has joined #wayland
jgrulich has joined #wayland
hardening has joined #wayland
<kennylevinsen> smallville7123: there is no reason to send data byte for byte, that would just lead to a huge syscall overhead
kts has joined #wayland
danvet has joined #wayland
rasterman has joined #wayland
___nick___ has joined #wayland
MajorBiscuit has joined #wayland
Company has quit [Quit: Leaving]
rv1sr has joined #wayland
tzimmermann has joined #wayland
rgallaispou has joined #wayland
manuel1985 has joined #wayland
<pq> smallville7123, 'man cmsg'
MajorBiscuit has quit [Ping timeout: 480 seconds]
manuel1985 has quit [Ping timeout: 480 seconds]
manuel1985 has joined #wayland
cool110 has quit [Quit: ZNC 1.8.2+deb2build6 - https://znc.in]
dcz_ has joined #wayland
cool110 has joined #wayland
cool110 has quit [Remote host closed the connection]
cool110 has joined #wayland
<wlb> weston/main: Derek Foreman * desktop-shell: Fix stuck panel https://gitlab.freedesktop.org/wayland/weston/commit/71cf2783d68a desktop-shell/shell.c
<wlb> weston Merge request !1062 merged \o/ (desktop-shell: Fix stuck panel https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1062)
kts has quit [Quit: Leaving]
rasterman has quit [Quit: Gettin' stinky!]
rasterman has joined #wayland
MajorBiscuit has joined #wayland
kts has joined #wayland
mvlad has joined #wayland
MajorBiscuit has quit [Ping timeout: 480 seconds]
caveman has quit [Remote host closed the connection]
caveman has joined #wayland
yoslin has quit [Ping timeout: 480 seconds]
floof58 has quit [Ping timeout: 480 seconds]
floof58 has joined #wayland
devilhorns has joined #wayland
gschwind has quit [Quit: Leaving]
MajorBiscuit has joined #wayland
cool110 has quit [Remote host closed the connection]
smallville7123 has quit [Quit: Konversation terminated!]
cool110 has joined #wayland
rv1sr has quit []
manuel_ has joined #wayland
rv1sr has joined #wayland
manuel1985 has quit [Ping timeout: 480 seconds]
smallville7123 has joined #wayland
caveman has quit [Remote host closed the connection]
caveman has joined #wayland
<smallville7123> ok we got wayland-scanner.exe build :)
<smallville7123> .\build\src\wayland-scanner.exe -v
<smallville7123> wayland-scanner 1.21.90
Leopold has joined #wayland
Leopold has quit []
frytaped is now known as Guest533
frytaped has joined #wayland
yoslin has joined #wayland
frytaped has quit [Remote host closed the connection]
frytaped has joined #wayland
fmuellner has joined #wayland
sav10 has joined #wayland
frytaped has quit [Quit: WeeChat 3.6]
frytaped has joined #wayland
frytaped has quit [Quit: WeeChat 3.6]
<smallville7123> now we gotta port wayland-client.c, wayland-server.c, and wayland-shm.c all large files ;-;
<smallville7123> tho at least we have 25 files compiling out of 88 files :)
jmdaemon has quit [Ping timeout: 480 seconds]
frytaped has joined #wayland
sav10 has quit []
jgrulich has quit [Remote host closed the connection]
fmuellner has quit []
MajorBiscuit has quit [Ping timeout: 480 seconds]
fmuellner has joined #wayland
kts has quit [Quit: Leaving]
rv1sr has quit [Remote host closed the connection]
Szadek has joined #wayland
frytaped has quit [Quit: WeeChat 3.6]
Company has joined #wayland
jgrulich has joined #wayland
rv1sr has joined #wayland
Leopold has joined #wayland
rv1sr has quit []
rv1sr has joined #wayland
Leopold has quit [Remote host closed the connection]
Leopold has joined #wayland
Leopold has quit [Remote host closed the connection]
Leopold has joined #wayland
Leopold has quit [Remote host closed the connection]
Leopold_ has joined #wayland
fmuellner_ has joined #wayland
manuel_ has quit [Read error: No route to host]
manuel1985 has joined #wayland
alarumbe has joined #wayland
fmuellner has quit [Ping timeout: 480 seconds]
Net147_ has joined #wayland
Net147 has quit [Read error: Connection reset by peer]
sav10 has joined #wayland
jgrulich has quit [Ping timeout: 480 seconds]
frytaped has joined #wayland
kts has joined #wayland
kts has quit [Quit: Leaving]
kts has joined #wayland
rv1sr has quit []
frytaped has quit [Quit: WeeChat 3.6]
Leopold__ has joined #wayland
Leopold_ has quit [Remote host closed the connection]
Leopold__ has quit [Remote host closed the connection]
Leopold_ has joined #wayland
kts has quit [Ping timeout: 480 seconds]
Leopold_ has quit [Remote host closed the connection]
Leopold_ has joined #wayland
rv1sr has joined #wayland
smallville7123 has quit [Read error: Connection reset by peer]
smallville7123 has joined #wayland
devilhorns has quit []
junaid has joined #wayland
ppascher has joined #wayland
ybogdano has joined #wayland
Szadek has quit [Quit: WeeChat 3.7.1]
tzimmermann has quit [Quit: Leaving]
cool110 has quit [Remote host closed the connection]
cool110 has joined #wayland
Leopold_ has quit [Remote host closed the connection]
Leopold_ has joined #wayland
ybogdano has quit [Ping timeout: 480 seconds]
Leopold_ has quit [Remote host closed the connection]
Leopold_ has joined #wayland
Leopold_ has quit [Remote host closed the connection]
Leopold_ has joined #wayland
ybogdano has joined #wayland
Leopold_ has quit [Remote host closed the connection]
Leopold_ has joined #wayland
Leopold_ has quit [Remote host closed the connection]
Leopold_ has joined #wayland
Leopold_ has quit [Remote host closed the connection]
Leopold_ has joined #wayland
manuel_ has joined #wayland
manuel1985 has quit [Read error: Connection reset by peer]
smallville7123 is now known as Guest566
small has joined #wayland
small is now known as smallville7123
Guest566 has quit [Ping timeout: 480 seconds]
Leopold_ has quit [Remote host closed the connection]
Leopold_ has joined #wayland
Leopold_ has quit [Remote host closed the connection]
cool110 has quit [Remote host closed the connection]
manuel_ has quit [Ping timeout: 480 seconds]
cool110 has joined #wayland
Szadek has joined #wayland
jmdaemon has joined #wayland
___nick___ has quit []
___nick___ has joined #wayland
___nick___ has quit []
___nick___ has joined #wayland
haasn has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
haasn has joined #wayland
manuel1985 has joined #wayland
junaid has quit [Ping timeout: 480 seconds]
mokee has quit []
junaid has joined #wayland
___nick___ has quit [Ping timeout: 480 seconds]
danvet has quit [Ping timeout: 480 seconds]
nerdopolis has joined #wayland
junaid has quit [Ping timeout: 480 seconds]
ybogdano has quit [Ping timeout: 480 seconds]
dcz_ has quit [Ping timeout: 480 seconds]
rv1sr has quit [Remote host closed the connection]
danvet has joined #wayland
rv1sr has joined #wayland
mvlad has quit [Remote host closed the connection]
danvet has quit [Ping timeout: 480 seconds]
cvmn has joined #wayland
manuel1985 has quit [Ping timeout: 480 seconds]
caveman has quit [Remote host closed the connection]
rv1sr has quit []
ybogdano has joined #wayland
hardening has quit [Ping timeout: 480 seconds]
rasterman has quit [Quit: Gettin' stinky!]
Leopold_ has joined #wayland
off^ has joined #wayland