An attempt to deal with this SO question
using golang.org/x/crypto/cryptobyte
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
/* | |
#include <stdio.h> | |
struct real_client { | |
int x; | |
}; | |
typedef struct Client{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module sockint | |
go 1.15 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = /usr/bin/i686-w64-mingw32-gcc | |
GOOS = windows | |
GOARCH = 386 | |
CGO_ENABLED = 1 | |
export CC GOOS GOARCH CGO_ENABLED | |
.PHONY: all build run clean | |
all: run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <locale.h> | |
#define WIN32_LEAN_AND_MEAN | |
#define _UNICODE | |
#include <windows.h> | |
int print_sys_error(DWORD last_error) | |
{ |
OlderNewer